diff --git a/substrate/client/network/src/protocol/generic_proto/behaviour.rs b/substrate/client/network/src/protocol/generic_proto/behaviour.rs index 88c2791ce4..4ae8b8b98a 100644 --- a/substrate/client/network/src/protocol/generic_proto/behaviour.rs +++ b/substrate/client/network/src/protocol/generic_proto/behaviour.rs @@ -914,11 +914,11 @@ impl GenericProto { error!(target: "sub-libp2p", "PSM => Drop({}, {:?}): Not enabled (Incoming).", entry.key().0, set_id); *entry.into_mut() = st; - debug_assert!(!false); + debug_assert!(false); }, PeerState::Poisoned => { error!(target: "sub-libp2p", "State of {:?} is poisoned", entry.key()); - debug_assert!(!false); + debug_assert!(false); }, } }