Skip to content

Commit

Permalink
fix: mark JsonRpcClientError:Call as retryable regardless of code
Browse files Browse the repository at this point in the history
  • Loading branch information
shaurya947 authored and maan2003 committed Jan 22, 2024
1 parent c079989 commit 8b57b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedimint-core/src/api.rs
Expand Up @@ -90,7 +90,7 @@ impl PeerError {
JsonRpcError::MaxSlotsExceeded => true,
JsonRpcError::RequestTimeout => true,
JsonRpcError::RestartNeeded(_) => true,
JsonRpcError::Call(e) => e.code() == 404,
JsonRpcError::Call(_) => true,
_ => false,
},
PeerError::InvalidResponse(_) => false,
Expand Down

0 comments on commit 8b57b8a

Please sign in to comment.