diff options
Diffstat (limited to 'jsonrpc/src/client.rs')
-rw-r--r-- | jsonrpc/src/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonrpc/src/client.rs b/jsonrpc/src/client.rs index dc36c0d..efbaf50 100644 --- a/jsonrpc/src/client.rs +++ b/jsonrpc/src/client.rs @@ -54,7 +54,7 @@ impl Client { let mut buffer = vec![]; if let Some(t) = self.config.timeout { - self.codec.read_until_timeout(&mut buffer, t).await?; + self.codec.read_until_with_timeout(&mut buffer, t).await?; } else { self.codec.read_until(&mut buffer).await?; }; |