From 165716a0fec25d403172cb41d52e80033eaa548a Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 28 May 2019 15:07:55 +0200 Subject: [PATCH] Deprecate NetworkSpecialization::on_abort (#2697) --- substrate/core/network/src/specialization.rs | 1 + 1 file changed, 1 insertion(+) 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.