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

client/network-gossip: Remove GossipEngine::abort method #4552

Merged
merged 1 commit into from
Jan 7, 2020
Merged
Show file tree
Hide file tree
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
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