mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 00:01:33 +00:00
Remove the Send + 'static requirements for floodsub (#637)
This commit is contained in:
@ -100,7 +100,7 @@ where
|
||||
|
||||
impl<TSubstream> ProtocolsHandler for FloodsubHandler<TSubstream>
|
||||
where
|
||||
TSubstream: AsyncRead + AsyncWrite + 'static,
|
||||
TSubstream: AsyncRead + AsyncWrite,
|
||||
{
|
||||
type InEvent = FloodsubRpc;
|
||||
type OutEvent = FloodsubRpc;
|
||||
|
@ -174,7 +174,7 @@ impl<TSubstream> FloodsubBehaviour<TSubstream> {
|
||||
|
||||
impl<TSubstream> NetworkBehavior for FloodsubBehaviour<TSubstream>
|
||||
where
|
||||
TSubstream: AsyncRead + AsyncWrite + Send + Sync + 'static,
|
||||
TSubstream: AsyncRead + AsyncWrite,
|
||||
{
|
||||
type ProtocolsHandler = FloodsubHandler<TSubstream>;
|
||||
type OutEvent = FloodsubMessage;
|
||||
|
Reference in New Issue
Block a user