diff --git a/substrate/core/network/src/specialization.rs b/substrate/core/network/src/specialization.rs index 58a63bb7a3..41d6c2edc8 100644 --- a/substrate/core/network/src/specialization.rs +++ b/substrate/core/network/src/specialization.rs @@ -35,6 +35,7 @@ pub trait NetworkSpecialization: Send + Sync + 'static { fn on_message(&mut self, ctx: &mut Context, who: PeerId, message: &mut Option>); /// Called on abort. + #[deprecated(note = "This method is never called; aborting corresponds to dropping the object")] fn on_abort(&mut self) { } /// Called periodically to maintain peers and handle timeouts.