(duration: Duration)
| 49 | } |
| 50 | |
| 51 | fn timeout_error(duration: Duration) -> ClientApiError { |
| 52 | ClientApiError::Network { |
| 53 | code: ErrorCode::ConnectionTimeout, |
| 54 | message: format!("Operation timed out after {duration:?}"), |
| 55 | retry_after_ms: Some(1000), |
| 56 | leader_hint: None, |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | fn not_leader_error( |
| 61 | leader_id: Option<String>, |
no outgoing calls
no test coverage detected