From ab91390f3688c6a59346338b31d1cee7fa8d7482 Mon Sep 17 00:00:00 2001 From: YI Date: Fri, 10 Jan 2025 19:46:10 +0800 Subject: [PATCH] Remove duplicated Up event on channel ready --- src/fiber/channel.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/fiber/channel.rs b/src/fiber/channel.rs index 3feed6af..f68aa707 100644 --- a/src/fiber/channel.rs +++ b/src/fiber/channel.rs @@ -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(