diff --git a/src/libp2p/peers.rs b/src/libp2p/peers.rs index 7312e6874b..6df9ce7218 100644 --- a/src/libp2p/peers.rs +++ b/src/libp2p/peers.rs @@ -2129,6 +2129,7 @@ pub enum InboundError { Connection(collection::InboundError), /// Refused a notifications substream because we already have an existing substream of that /// protocol. + #[display(fmt = "Refused duplicate notifications substream")] DuplicateNotificationsSubstream { /// Notifications protocol the substream is about. notifications_protocol_index: usize,