Remove NetworkSpecialization::on_event (#3976)

This commit is contained in:
Pierre Krieger
2019-10-31 16:38:53 +01:00
committed by Gavin Wood
parent 4264613a96
commit eb3c950cfe
4 changed files with 8 additions and 20 deletions
@@ -42,7 +42,8 @@ pub trait NetworkSpecialization<B: BlockT>: Send + Sync + 'static {
);
/// Called when a network-specific event arrives.
fn on_event(&mut self, event: Event);
#[deprecated(note = "This method is never called; please use `with_dht_event_tx` when building the service")]
fn on_event(&mut self, event: Event) {}
/// Called on abort.
#[deprecated(note = "This method is never called; aborting corresponds to dropping the object")]