diff --git a/ethers-providers/src/pubsub.rs b/ethers-providers/src/pubsub.rs index 6bd6bc44..15a635dd 100644 --- a/ethers-providers/src/pubsub.rs +++ b/ethers-providers/src/pubsub.rs @@ -15,7 +15,7 @@ use std::{ /// A transport implementation supporting pub sub subscriptions. pub trait PubsubClient: JsonRpcClient { /// The type of stream this transport returns - type NotificationStream: futures_core::Stream; + type NotificationStream: futures_core::Stream + Send + Unpin; /// Add a subscription to this transport fn subscribe>(&self, id: T) -> Result;