From 2d1a8aea0b9330cd2eaad26eb187644adad6bed9 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Thu, 23 May 2024 00:19:58 +0200 Subject: jsonrpc: spawn task when handle new request --- jsonrpc/src/error.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'jsonrpc/src/error.rs') diff --git a/jsonrpc/src/error.rs b/jsonrpc/src/error.rs index d68e169..e1cb071 100644 --- a/jsonrpc/src/error.rs +++ b/jsonrpc/src/error.rs @@ -32,6 +32,9 @@ pub enum Error { #[error("Unsupported protocol: {0}")] UnsupportedProtocol(String), + #[error("Receive close message from connection: {0}")] + CloseConnection(String), + #[error("Subscription not found: {0}")] SubscriptionNotFound(String), -- cgit v1.2.3