From d51f212628f4996d754745b4904a1994ba39a2d0 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Thu, 23 May 2024 01:27:45 +0200 Subject: jsonrpc: remove subscriber field from Request & clean up --- jsonrpc/src/message.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'jsonrpc/src/message.rs') diff --git a/jsonrpc/src/message.rs b/jsonrpc/src/message.rs index 2cf28b1..55f8314 100644 --- a/jsonrpc/src/message.rs +++ b/jsonrpc/src/message.rs @@ -27,8 +27,6 @@ pub struct Request { pub method: String, pub params: serde_json::Value, pub id: serde_json::Value, - #[serde(skip_serializing_if = "Option::is_none")] - pub subscriber: Option, } #[derive(Debug, Serialize, Deserialize)] @@ -69,8 +67,8 @@ impl std::fmt::Display for Request { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!( f, - "{{jsonrpc: {}, method: {}, params: {:?}, id: {:?}, subscribe: {:?}}}", - self.jsonrpc, self.method, self.params, self.id, self.subscriber + "{{jsonrpc: {}, method: {}, params: {:?}, id: {:?}}}", + self.jsonrpc, self.method, self.params, self.id, ) } } -- cgit v1.2.3