From 23bcd44f180ce42ec8f0b38deffbb44108122793 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 16 Nov 2018 12:49:55 +0100 Subject: [PATCH] Remove Send/Sync/'static reqs from ping (#652) --- protocols/ping/src/dial_layer.rs | 2 +- protocols/ping/src/listen_layer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;