mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 16:21: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>
|
impl<TSubstream> NetworkBehavior for PeriodicPingBehaviour<TSubstream>
|
||||||
where
|
where
|
||||||
TSubstream: AsyncRead + AsyncWrite + Send + Sync + 'static,
|
TSubstream: AsyncRead + AsyncWrite,
|
||||||
{
|
{
|
||||||
type ProtocolsHandler = PeriodicPingHandler<TSubstream>;
|
type ProtocolsHandler = PeriodicPingHandler<TSubstream>;
|
||||||
type OutEvent = Void;
|
type OutEvent = Void;
|
||||||
|
@ -50,7 +50,7 @@ impl<TSubstream> Default for PingListenBehaviour<TSubstream> {
|
|||||||
|
|
||||||
impl<TSubstream> NetworkBehavior for PingListenBehaviour<TSubstream>
|
impl<TSubstream> NetworkBehavior for PingListenBehaviour<TSubstream>
|
||||||
where
|
where
|
||||||
TSubstream: AsyncRead + AsyncWrite + Send + Sync + 'static,
|
TSubstream: AsyncRead + AsyncWrite,
|
||||||
{
|
{
|
||||||
type ProtocolsHandler = PingListenHandler<TSubstream>;
|
type ProtocolsHandler = PingListenHandler<TSubstream>;
|
||||||
type OutEvent = Void;
|
type OutEvent = Void;
|
||||||
|
Reference in New Issue
Block a user