Skip to content

Commit ae1783e

Browse files
committed
fmt
1 parent e411f2c commit ae1783e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lightning-block-sync/src/convert.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ impl From<RpcClientError> for BlockSourceError {
6666
match e {
6767
RpcClientError::Http(http_err) => match http_err {
6868
// Transport errors (connection, timeout, etc.) are transient
69-
HttpClientError::Transport(err) => {
70-
BlockSourceError::transient(RpcClientError::Http(HttpClientError::Transport(
71-
err,
72-
)))
73-
},
69+
HttpClientError::Transport(err) => BlockSourceError::transient(
70+
RpcClientError::Http(HttpClientError::Transport(err)),
71+
),
7472
// 5xx errors are transient (server issues), others are persistent (client errors)
7573
HttpClientError::Http(http) => {
7674
if (500..600).contains(&http.status_code) {

0 commit comments

Comments
 (0)