Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
client/network-gossip: Remove GossipEngine::abort method (#4552)
Browse files Browse the repository at this point in the history
`GossipEngine::abort` and thus `ConsensusGossip::abort` are never
called. This patch removes both.
  • Loading branch information
mxinden authored and rphmeier committed Jan 7, 2020
1 parent d41ccd6 commit 026fd3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions client/network-gossip/src/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ impl<B: BlockT> GossipEngine<B> {
gossip_engine
}

/// Closes all notification streams.
pub fn abort(&self) {
self.inner.lock().state_machine.abort();
}

pub fn report(&self, who: PeerId, reputation: ReputationChange) {
self.inner.lock().context.report_peer(who, reputation);
}
Expand Down
5 changes: 0 additions & 5 deletions client/network-gossip/src/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,6 @@ impl<B: BlockT> ConsensusGossip<B> {
}
}

/// Closes all notification streams.
pub fn abort(&mut self) {
self.live_message_sinks.clear();
}

/// Register message validator for a message type.
pub fn register_validator(
&mut self,
Expand Down

0 comments on commit 026fd3f

Please sign in to comment.