Skip to content

Commit

Permalink
docs: fix import path in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver committed Nov 29, 2024
1 parent a221a2c commit 9129268
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/fetch_beacon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

use beacon_protos::{Block as BeaconBlock, Body};
use firehose_client::{Chain, FirehoseClient};
use vee::protos::EthBlock;
use vee::EthBlock;

#[tokio::main]
async fn main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fetch_ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! Demonstrates how to fetch a single block from Ethereum firehose.

use firehose_client::{Chain, FirehoseClient};
use vee::protos::EthBlock as Block;
use vee::EthBlock as Block;

#[tokio::main]
async fn main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stream_ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! This example demonstrates how to stream Ethereum blocks using the Firehose client.
use firehose_client::{Chain, FirehoseClient};
use futures::StreamExt;
use vee::protos::EthBlock as Block;
use vee::EthBlock as Block;

#[tokio::main]
async fn main() {
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//!
//! ## Fetching an Ethereum Block
//!
//! ```no_run
//! ```rust,no_run
//! # use firehose_client::{Chain, FirehoseClient};
//! # use vee::EthBlock as Block;
//! # #[tokio::main]
Expand All @@ -29,7 +29,7 @@
//!
//! ## Streaming Ethereum Blocks
//!
//! ```no_run
//! ```rust,no_run
//! # use firehose_client::{Chain, FirehoseClient};
//! # use futures::StreamExt;
//! # #[tokio::main]
Expand Down

0 comments on commit 9129268

Please sign in to comment.