mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 15:28:02 +00:00
client/network-gossip: Remove GossipEngine::abort method (#4552)
`GossipEngine::abort` and thus `ConsensusGossip::abort` are never called. This patch removes both.
This commit is contained in:
committed by
Robert Habermeier
parent
bc9676737f
commit
d76a33033d
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user