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