diff options
author | hozan23 <hozan23@karyontech.net> | 2024-06-17 16:17:17 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-06-17 16:17:17 +0200 |
commit | 72accd61fad0eea312d868b283c6b26da4802ff8 (patch) | |
tree | a1b8e0df25df3ea6bc6be5b1fe6ebe1f282150c4 /jsonrpc/src/client/builder.rs | |
parent | 2d2925c3e21af8ee8f745aa00c0a59dcd9c95df9 (diff) |
jsonrpc/client: use serde untagged enum for decoding Notifications and Responses
Diffstat (limited to 'jsonrpc/src/client/builder.rs')
-rw-r--r-- | jsonrpc/src/client/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpc/src/client/builder.rs b/jsonrpc/src/client/builder.rs index 2263498..510ce56 100644 --- a/jsonrpc/src/client/builder.rs +++ b/jsonrpc/src/client/builder.rs @@ -16,7 +16,7 @@ use crate::codec::WsJsonCodec; use crate::{codec::JsonCodec, Error, Result, TcpConfig}; -use super::{Client, MessageDispatcher, Subscriber}; +use super::{Client, MessageDispatcher, Subscriptions}; const DEFAULT_TIMEOUT: u64 = 3000; // 3s @@ -172,7 +172,7 @@ impl ClientBuilder { timeout: self.timeout, conn, message_dispatcher: MessageDispatcher::new(), - subscriber: Subscriber::new(), + subscriptions: Subscriptions::new(), task_group: TaskGroup::new(), }); client.start_background_receiving(); |