Skip to content

Commit 8bd13b1

Browse files
committed
chore: doctest
1 parent 9fc6543 commit 8bd13b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/safe_provider.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
//! let provider = RootProvider::<Ethereum>::new(
1919
//! ClientBuilder::default().ws(WsConnect::new("wss://localhost:8000")).await?,
2020
//! );
21-
//! let safe_provider =
22-
//! SafeProvider::new(provider).with_timeout(Duration::from_secs(30)).with_max_retries(5);
21+
//! let safe_provider = SafeProvider::new(provider)
22+
//! .with_max_timeout(Duration::from_secs(30))
23+
//! .with_max_retries(5);
2324
//!
2425
//! let block = safe_provider.get_block_by_number(12345.into()).await?;
2526
//! Ok(())

0 commit comments

Comments
 (0)