Remove the Send + 'static requirements for floodsub (#637)

This commit is contained in:
Pierre Krieger
2018-11-15 19:00:57 +01:00
committed by GitHub
parent 1c9091655b
commit 373b05347a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;