Skip to content

Commit

Permalink
Remove duplicated Up event on channel ready
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Jan 10, 2025
1 parent 9c9aece commit ab91390
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/fiber/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5672,15 +5672,6 @@ impl ChannelActorState {
self.increment_remote_commitment_number();
let peer_id = self.get_remote_peer_id();
self.notify_owned_channel_updated(network).await;
if let Ok(channel_info) = (&*self).try_into() {
network
.send_message(NetworkActorMessage::new_event(
NetworkActorEvent::OwnedChannelUpdateEvent(
super::graph::OwnedChannelUpdateEvent::Up(channel_info),
),
))
.expect(ASSUME_NETWORK_ACTOR_ALIVE);
}
network
.send_message(NetworkActorMessage::new_event(
NetworkActorEvent::ChannelReady(
Expand Down

0 comments on commit ab91390

Please sign in to comment.