From e6cd74cf1f2040821be5a606df87ed03234996c6 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 23 Aug 2021 16:55:36 +0200 Subject: [PATCH] fix: add send + unpin to stream type (#402) --- ethers-providers/src/pubsub.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;