We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 133dc12 commit 2de6b7bCopy full SHA for 2de6b7b
lightning-block-sync/src/convert.rs
@@ -66,11 +66,9 @@ impl From<RpcClientError> for BlockSourceError {
66
match e {
67
RpcClientError::Http(http_err) => match http_err {
68
// Transport errors (connection, timeout, etc.) are transient
69
- HttpClientError::Transport(err) => {
70
- BlockSourceError::transient(RpcClientError::Http(HttpClientError::Transport(
71
- err,
72
- )))
73
- },
+ HttpClientError::Transport(err) => BlockSourceError::transient(
+ RpcClientError::Http(HttpClientError::Transport(err)),
+ ),
74
// 5xx errors are transient (server issues), others are persistent (client errors)
75
HttpClientError::Http(http) => {
76
if (500..600).contains(&http.status_code) {
0 commit comments