Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions node/network/gossip-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand All @@ -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?;
}
}
Expand All @@ -234,8 +234,7 @@ where
&mut self,
ctx: &mut Context,
authorities: Vec<AuthorityDiscoveryId>,
) -> Result<(), util::Error>
where
) where
Context: SubsystemContext<Message = GossipSupportMessage>,
Context: overseer::SubsystemContext<Message = GossipSupportMessage>,
{
Expand Down Expand Up @@ -295,8 +294,6 @@ where
self.last_failure = None;
self.failure_start = None;
};

Ok(())
}

fn handle_connect_disconnect(&mut self, ev: NetworkBridgeEvent<GossipSuppportNetworkMessage>) {
Expand Down