aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc/src/client.rs')
-rw-r--r--jsonrpc/src/client.rs3
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}");