From 34f528a3b4063b4a25915e60d7f22ee1fb2d1bd9 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Tue, 28 May 2024 15:14:34 +0200 Subject: jsonrpc: add comments & remove debugging code --- jsonrpc/src/client/mod.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'jsonrpc/src/client/mod.rs') diff --git a/jsonrpc/src/client/mod.rs b/jsonrpc/src/client/mod.rs index 05479f9..326252a 100644 --- a/jsonrpc/src/client/mod.rs +++ b/jsonrpc/src/client/mod.rs @@ -98,15 +98,7 @@ impl Client { let req_json = serde_json::to_value(&request)?; - match self.timeout { - Some(ms) => { - let t = Duration::from_millis(ms); - timeout(t, self.conn.send(req_json)).await??; - } - None => { - self.conn.send(req_json).await?; - } - } + self.conn.send(req_json).await?; let (tx, rx) = async_channel::bounded(CHANNEL_CAP); self.chans.lock().await.insert(id, tx); -- cgit v1.2.3