diff --git a/protocols/ping/src/dial_layer.rs b/protocols/ping/src/dial_layer.rs index 57e536c6..8118cef8 100644 --- a/protocols/ping/src/dial_layer.rs +++ b/protocols/ping/src/dial_layer.rs @@ -50,7 +50,7 @@ impl Default for PeriodicPingBehaviour { impl NetworkBehavior for PeriodicPingBehaviour where - TSubstream: AsyncRead + AsyncWrite + Send + Sync + 'static, + TSubstream: AsyncRead + AsyncWrite, { type ProtocolsHandler = PeriodicPingHandler; type OutEvent = Void; diff --git a/protocols/ping/src/listen_layer.rs b/protocols/ping/src/listen_layer.rs index a69e8e4d..b8da169b 100644 --- a/protocols/ping/src/listen_layer.rs +++ b/protocols/ping/src/listen_layer.rs @@ -50,7 +50,7 @@ impl Default for PingListenBehaviour { impl NetworkBehavior for PingListenBehaviour where - TSubstream: AsyncRead + AsyncWrite + Send + Sync + 'static, + TSubstream: AsyncRead + AsyncWrite, { type ProtocolsHandler = PingListenHandler; type OutEvent = Void;