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
{{ message }}
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
$ uname -a
Linux foobar 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
Description
EventStream is emitted by various functions yet is behind a private module in the ethers_contract crate, stream.
Consider the following snippet:
use ethers_contract::stream::EventStream;/* ... */asyncfnsetup_stream_from_pools(pools:&Vec<PoolCommitter<SignerMiddleware<Provider<Http>,LocalWallet>>>,) -> Vec<EventStream>{letmut all_streams = vec![];for pool in pools {
all_streams.push(
pool.event::<CreateCommit>().from_block(BlockNumber::Latest).stream());}let stream = join_all(all_streams).await.iter().map(|x| x.unwrap()).collect();
stream
}
$ cargo build
error[E0603]: module `stream` is private
--> src/main.rs:12:22
|
12 | use ethers_contract::stream::EventStream;
| ^^^^^^ private module
|
note: the module `stream` is defined here
--> /home/johndoe/.cargo/registry/src/github.com-1ecc6299db9ec823/ethers-contract-0.6.2/src/lib.rs:21:1
|
21 | mod stream;
Ideally, the EventStream type would be exposed in the top-level ethers-rs prelude.
The text was updated successfully, but these errors were encountered:
Version
Platform
Description
EventStream
is emitted by various functions yet is behind a private module in theethers_contract
crate,stream
.Consider the following snippet:
Ideally, the
EventStream
type would be exposed in the top-levelethers-rs
prelude.The text was updated successfully, but these errors were encountered: