Skip to content

Commit c9ca389

Browse files
committed
chore: simplify client get
1 parent 3a61bb6 commit c9ca389

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/tx-cache/src/client.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ impl TxCache {
102102
.join(join)
103103
.inspect_err(|e| warn!(%e, "Failed to join URL. Not querying transaction cache."))?;
104104

105-
let request = self.client.get(url).query(&query);
106-
107-
// Get the result.
108-
request
105+
self.client
106+
.get(url)
107+
.query(&query)
109108
.send()
110109
.await
111110
.inspect_err(|e| warn!(%e, "Failed to get object from transaction cache."))?

0 commit comments

Comments
 (0)