Remove Send/Sync/'static reqs from ping (#652)

This commit is contained in:
Pierre Krieger
2018-11-16 12:49:55 +01:00
committed by GitHub
parent 8b6bdd5554
commit 23bcd44f18
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ impl<TSubstream> Default for PeriodicPingBehaviour<TSubstream> {
impl<TSubstream> NetworkBehavior for PeriodicPingBehaviour<TSubstream>
where
TSubstream: AsyncRead + AsyncWrite + Send + Sync + 'static,
TSubstream: AsyncRead + AsyncWrite,
{
type ProtocolsHandler = PeriodicPingHandler<TSubstream>;
type OutEvent = Void;

View File

@ -50,7 +50,7 @@ impl<TSubstream> Default for PingListenBehaviour<TSubstream> {
impl<TSubstream> NetworkBehavior for PingListenBehaviour<TSubstream>
where
TSubstream: AsyncRead + AsyncWrite + Send + Sync + 'static,
TSubstream: AsyncRead + AsyncWrite,
{
type ProtocolsHandler = PingListenHandler<TSubstream>;
type OutEvent = Void;