aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/src/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc/src/server.rs')
-rw-r--r--jsonrpc/src/server.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/jsonrpc/src/server.rs b/jsonrpc/src/server.rs
index 133f261..f6006cc 100644
--- a/jsonrpc/src/server.rs
+++ b/jsonrpc/src/server.rs
@@ -99,7 +99,8 @@ impl<'a> Server<'a> {
let mut buffer = vec![];
codec.read_until(&mut buffer).await?;
let response = selfc.handle_request(&buffer).await;
- let payload = serde_json::to_vec(&response)?;
+ let mut payload = serde_json::to_vec(&response)?;
+ payload.push(b'\n');
codec.write_all(&payload).await?;
debug!("--> {response}");
}