Skip to content

Commit 4844774

Browse files
committed
doc: update links
1 parent 788301c commit 4844774

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/robust_provider/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
//! Robust, retrying wrapper around Alloy providers.
22
//!
3-
//! This module exposes [`RobustProvider`], a small wrapper around Alloy's
3+
//! This module exposes [`RobustProvider`](crate::robust_provider), a small wrapper around Alloy's
44
//! `RootProvider` that adds:
55
//! * bounded per-call timeouts
66
//! * exponential backoff retries
77
//! * transparent failover between a primary and one or more fallback providers
88
//! * more robust WebSocket block subscriptions with automatic reconnection
99
//!
10-
//! Use [`RobustProviderBuilder`] to construct a provider with sensible defaults
11-
//! and optional fallbacks, or implement the [`IntoRobustProvider`] and [`IntoRootProvider`]
12-
//! traits to support custom providers.
10+
//! Use [`RobustProviderBuilder`](crate::robust_provider::RobustProviderBuilder) to construct a
11+
//! provider with sensible defaults and optional fallbacks, or implement the [`IntoRobustProvider`]
12+
//! and [`IntoRootProvider`] traits to support custom providers.
1313
//!
1414
//! # How it works
1515
//!
1616
//! All RPC calls performed through [`RobustProvider`] are wrapped in a total
1717
//! timeout and retried with exponential backoff up to `max_retries`. If the
1818
//! primary provider keeps failing, the call is retried against the configured
1919
//! fallback providers in the order they were added. For subscriptions,
20-
//! [`RobustSubscription`] also tracks lag, switches to fallbacks on repeated
21-
//! failure, and periodically attempts to reconnect to the primary provider.
20+
//! [`RobustSubscription`](crate::robust_provider::RobustSubscription) also tracks lag, switches to
21+
//! fallbacks on repeated failure, and periodically attempts to reconnect to the primary provider.
2222
//!
2323
//! # Examples
2424
//!

0 commit comments

Comments
 (0)