aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/src/server
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-06-22 15:53:22 +0200
committerhozan23 <hozan23@karyontech.net>2024-06-22 15:53:22 +0200
commiteed5fdb54cc261756c828d9c6bd1114e16ec6aa8 (patch)
tree703e0b31b2d84b9df3eb917e3b2dbf29fb7b0049 /jsonrpc/src/server
parent6c793e7ed3f3736e2169976f11e304f288ca6813 (diff)
jsonrpc/client: close the subscription channel when calling unsubscribe
Diffstat (limited to 'jsonrpc/src/server')
-rw-r--r--jsonrpc/src/server/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/jsonrpc/src/server/mod.rs b/jsonrpc/src/server/mod.rs
index ddebeb9..bde351e 100644
--- a/jsonrpc/src/server/mod.rs
+++ b/jsonrpc/src/server/mod.rs
@@ -83,11 +83,11 @@ impl Server {
match selfc.listener.accept().await {
Ok(conn) => {
if let Err(err) = selfc.handle_conn(conn).await {
- error!("Failed to handle a new conn: {err}")
+ error!("Handle a new connection: {err}")
}
}
Err(err) => {
- error!("Failed to accept a new conn: {err}")
+ error!("Accept a new connection: {err}")
}
}
}
@@ -249,7 +249,7 @@ impl Server {
trace!("--> new request {msg}");
let on_complete = |result: TaskResult<Result<()>>| async move {
if let TaskResult::Completed(Err(err)) = result {
- error!("Failed to handle a request: {err}");
+ error!("Handle a new request: {err}");
}
};
let selfc = self.clone();