mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 08:11:39 +00:00
Remove Send/Sync/'static reqs from ping (#652)
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user