fix: add send + unpin to stream type (#402)

This commit is contained in:
Matthias Seitz 2021-08-23 16:55:36 +02:00 committed by GitHub
parent 26324343ec
commit e6cd74cf1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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<Item = Value>;
type NotificationStream: futures_core::Stream<Item = Value> + Send + Unpin;
/// Add a subscription to this transport
fn subscribe<T: Into<U256>>(&self, id: T) -> Result<Self::NotificationStream, Self::Error>;