aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/src/client
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-06-15 02:22:33 +0200
committerhozan23 <hozan23@karyontech.net>2024-06-15 03:55:27 +0200
commit2d2925c3e21af8ee8f745aa00c0a59dcd9c95df9 (patch)
treebb8e18a977b5e60579250fcf2bc7e974182392fb /jsonrpc/src/client
parent5bad1b8c6470f504339a742cfa8d213428a5c7f0 (diff)
bump version to 0.1.3
Diffstat (limited to 'jsonrpc/src/client')
-rw-r--r--jsonrpc/src/client/message_dispatcher.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonrpc/src/client/message_dispatcher.rs b/jsonrpc/src/client/message_dispatcher.rs
index aa47cec..14dcc71 100644
--- a/jsonrpc/src/client/message_dispatcher.rs
+++ b/jsonrpc/src/client/message_dispatcher.rs
@@ -24,7 +24,7 @@ impl MessageDispatcher {
/// Registers a new request with a given ID and returns a Receiver channel
/// to wait for the response.
pub(super) async fn register(&self, id: RequestID) -> Receiver<message::Response> {
- let (tx, rx) = async_channel::unbounded();
+ let (tx, rx) = async_channel::bounded(1);
self.chans.lock().await.insert(id, tx);
rx
}