diff options
author | hozan23 <hozan23@proton.me> | 2023-11-21 15:38:45 +0300 |
---|---|---|
committer | hozan23 <hozan23@proton.me> | 2023-11-21 15:42:28 +0300 |
commit | 542897ce2ed7fb8a8627ec8ba8b3490acb29149f (patch) | |
tree | cf4cd602688ebbf6407248fad92eafe048005223 /jsonrpc/src/client.rs | |
parent | d1ab7d52abc833bb5c65d1e9545e250d589054ee (diff) |
jsonrpc: switch to LF delimiter for reading json, replacing the dummy delimiter
Diffstat (limited to 'jsonrpc/src/client.rs')
-rw-r--r-- | jsonrpc/src/client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jsonrpc/src/client.rs b/jsonrpc/src/client.rs index 1ce9ecb..f5277aa 100644 --- a/jsonrpc/src/client.rs +++ b/jsonrpc/src/client.rs @@ -58,7 +58,8 @@ impl Client { params: serde_json::json!(params), }; - let payload = serde_json::to_vec(&request)?; + let mut payload = serde_json::to_vec(&request)?; + payload.push(b'\n'); self.codec.write_all(&payload).await?; debug!("--> {request}"); |