MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / is_connection_error

Function is_connection_error

nodedb-client/src/native/client/core.rs:102–107  ·  view source on GitHub ↗

Check if an error is a connection-level failure (worth retrying).

(e: &NodeDbError)

Source from the content-addressed store, hash-verified

100
101/// Check if an error is a connection-level failure (worth retrying).
102pub(super) fn is_connection_error(e: &NodeDbError) -> bool {
103 matches!(
104 e.details(),
105 ErrorDetails::SyncConnectionFailed | ErrorDetails::Storage { .. }
106 )
107}

Callers 3

execute_sql_implMethod · 0.85
queryMethod · 0.85
ddlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected