Skip to content

Commit

Permalink
fix: example docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver committed Nov 29, 2024
1 parent 9129268 commit 7ecef07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@
//! ```rust,no_run
//! # use firehose_client::{Chain, FirehoseClient};
//! # use futures::StreamExt;
//! # use vee::EthBlock as Block;
//! # #[tokio::main]
//! # async fn main() -> Result<(), vee::ProtosError> {
//! const TOTAL_BLOCKS: u64 = 8192;
//! const START_BLOCK: u64 = 19581798;
//!
//! let mut client = FirehoseClient::new(Chain::Ethereum);
//! let mut stream = client
//! .stream_blocks(START_BLOCK, TOTAL_BLOCKS)
//! .stream_blocks::<Block>(START_BLOCK, TOTAL_BLOCKS)
//! .await
//! .unwrap();
//!
Expand Down

0 comments on commit 7ecef07

Please sign in to comment.