Skip to content

Commit e441e2e

Browse files
committed
Revert "expose try_operation_with_failover publicly"
This reverts commit 7d48e5a.
1 parent ec63456 commit e441e2e

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
@@ -29,7 +29,7 @@ pub enum Error {
2929

3030
/// Low-level error related to RPC calls and failover logic.
3131
#[derive(Error, Debug)]
32-
pub enum CoreError {
32+
pub(crate) enum CoreError {
3333
#[error("Operation timed out")]
3434
Timeout,
3535
#[error("RPC call failed after exhausting all retry attempts: {0}")]
@@ -343,7 +343,7 @@ impl<N: Network> RobustProvider<N> {
343343
/// returned by the last provider attempted on the last retry.
344344
/// * [`CoreError::Timeout`] - if the overall operation timeout elapses (i.e. exceeds
345345
/// `call_timeout`).
346-
pub async fn try_operation_with_failover<T: Debug, F, Fut>(
346+
pub(crate) async fn try_operation_with_failover<T: Debug, F, Fut>(
347347
&self,
348348
operation: F,
349349
require_pubsub: bool,

0 commit comments

Comments
 (0)