You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using PubsubClient to subscribe to new logs using logs_subscribe.
However, when I run this code, it ends up wit the following error:
error[E0599]: no method named `next` found for struct `Pin<Box<dyn futures_core::stream::Stream<Item = solana_client::rpc_response::Response<RpcLogsResponse>> + Send>>` in the current scope
--> src/main.rs:90:27
|
90 | let logs = stream.next().await.unwrap();
| ^^^^ method not found in `Pin<Box<dyn Stream<Item = Response<RpcLogsResponse>> + Send>>`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
|
1 + use enum_iterator::Sequence;
|
1 + use futures_util::stream::stream::StreamExt;
|
1 + use serde_json::de::Read;
|
1 + use std::iter::Iterator;
|
and 2 other candidates
Problem
I'm using
PubsubClient
to subscribe to new logs usinglogs_subscribe
.However, when I run this code, it ends up wit the following error:
Here is minimal code:
The issue is happening also when using any other subscription methods, such as
program_subscribe
.More debug info:
Cargo.toml:
Any idea why this could be happening?
Proposed Solution
The text was updated successfully, but these errors were encountered: