Skip to content

Commit 44c8bf6

Browse files
committed
Format
1 parent 1d0d1a6 commit 44c8bf6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/rpc_http_client.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,13 @@ impl RPCHttpClient {
8888
tokio::spawn(task);
8989

9090
match timeout(self.timeout, sender.send_request(build_request(&url)?)).await.ok() {
91-
Some(res) => {
92-
match res {
93-
Ok(r) => {
94-
self.preconnect(&server);
95-
self.check_status(r).await
96-
},
97-
Err(e) => Err(e.into()),
91+
Some(res) => match res {
92+
Ok(r) => {
93+
self.preconnect(&server);
94+
self.check_status(r).await
9895
}
99-
}
96+
Err(e) => Err(e.into()),
97+
},
10098
None => Err(IoError::new(TimedOut, format!("Request timeout: url={}", url)).into()),
10199
}
102100
}

0 commit comments

Comments
 (0)