mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 08:41:36 +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>
|
impl<TSubstream> ProtocolsHandler for FloodsubHandler<TSubstream>
|
||||||
where
|
where
|
||||||
TSubstream: AsyncRead + AsyncWrite + 'static,
|
TSubstream: AsyncRead + AsyncWrite,
|
||||||
{
|
{
|
||||||
type InEvent = FloodsubRpc;
|
type InEvent = FloodsubRpc;
|
||||||
type OutEvent = FloodsubRpc;
|
type OutEvent = FloodsubRpc;
|
||||||
|
@ -174,7 +174,7 @@ impl<TSubstream> FloodsubBehaviour<TSubstream> {
|
|||||||
|
|
||||||
impl<TSubstream> NetworkBehavior for FloodsubBehaviour<TSubstream>
|
impl<TSubstream> NetworkBehavior for FloodsubBehaviour<TSubstream>
|
||||||
where
|
where
|
||||||
TSubstream: AsyncRead + AsyncWrite + Send + Sync + 'static,
|
TSubstream: AsyncRead + AsyncWrite,
|
||||||
{
|
{
|
||||||
type ProtocolsHandler = FloodsubHandler<TSubstream>;
|
type ProtocolsHandler = FloodsubHandler<TSubstream>;
|
||||||
type OutEvent = FloodsubMessage;
|
type OutEvent = FloodsubMessage;
|
||||||
|
Reference in New Issue
Block a user