Fix floodsub with new futures (#1249)

This commit is contained in:
Pierre Krieger
2019-10-07 11:32:47 +02:00
committed by GitHub
parent 73aa27827f
commit 6667fb8016
2 changed files with 15 additions and 12 deletions

View File

@ -230,7 +230,7 @@ impl<TSubstream> Floodsub<TSubstream> {
impl<TSubstream> NetworkBehaviour for Floodsub<TSubstream>
where
TSubstream: AsyncRead + AsyncWrite + Unpin,
TSubstream: AsyncRead + AsyncWrite + Send + Unpin + 'static,
{
type ProtocolsHandler = OneShotHandler<TSubstream, FloodsubConfig, FloodsubRpc, InnerMessage>;
type OutEvent = FloodsubEvent;