Skip to content

Commit 5198b1c

Browse files
committed
expose try_operation_with_failover publicly
1 parent 87b7362 commit 5198b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/robust_provider/provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub enum Error {
2828

2929
/// Low-level error related to RPC calls and failover logic.
3030
#[derive(Error, Debug)]
31-
pub(crate) enum CoreError {
31+
pub enum CoreError {
3232
#[error("Operation timed out")]
3333
Timeout,
3434
#[error("RPC call failed after exhausting all retry attempts: {0}")]
@@ -315,7 +315,7 @@ impl<N: Network> RobustProvider<N> {
315315
/// * Returns [`RpcError::Transport(TransportErrorKind::PubsubUnavailable)`] if `require_pubsub`
316316
/// is true and all providers don't support pubsub.
317317
/// * Propagates any [`RpcError<TransportErrorKind>`] from the underlying retries.
318-
pub(crate) async fn try_operation_with_failover<T: Debug, F, Fut>(
318+
pub async fn try_operation_with_failover<T: Debug, F, Fut>(
319319
&self,
320320
operation: F,
321321
require_pubsub: bool,

0 commit comments

Comments
 (0)