Remove NetworkSpecialization::on_event (#3976)

This commit is contained in:
Pierre Krieger authored and Gavin Wood committed 2019-10-31 15:38:53 +00:00
1 parent 4264613a96
commit eb3c950cfe
4 files changed
+8 -20

No files matched your search

@@ -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")]