MCPcopy Create free account
hub / github.com/deventlab/d-engine / timeout_error

Function timeout_error

d-engine-server/src/api/embedded_client.rs:51–58  ·  view source on GitHub ↗
(duration: Duration)

Source from the content-addressed store, hash-verified

49}
50
51fn 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
60fn not_leader_error(
61 leader_id: Option<String>,

Callers 8

putMethod · 0.85
get_with_consistencyMethod · 0.85
deleteMethod · 0.85
scan_prefixMethod · 0.85
put_with_ttlMethod · 0.85
compare_and_swapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected