diff --git a/node/network/gossip-support/src/lib.rs b/node/network/gossip-support/src/lib.rs index 97be38933802..0679c3ffe2de 100644 --- a/node/network/gossip-support/src/lib.rs +++ b/node/network/gossip-support/src/lib.rs @@ -208,6 +208,7 @@ where %session_index, "New session detected", ); + self.last_session_index = Some(session_index); } let all_authorities = determine_relevant_authorities(ctx, relay_parent).await?; @@ -218,10 +219,9 @@ where authorities }; - self.issue_connection_request(ctx, other_authorities).await?; + self.issue_connection_request(ctx, other_authorities).await; if is_new_session { - self.last_session_index = Some(session_index); update_gossip_topology(ctx, our_index, all_authorities, relay_parent).await?; } } @@ -234,8 +234,7 @@ where &mut self, ctx: &mut Context, authorities: Vec, - ) -> Result<(), util::Error> - where + ) where Context: SubsystemContext, Context: overseer::SubsystemContext, { @@ -295,8 +294,6 @@ where self.last_failure = None; self.failure_start = None; }; - - Ok(()) } fn handle_connect_disconnect(&mut self, ev: NetworkBridgeEvent) {