From 3c6102d5b534fe9fad295db972b4a116b2b5ae26 Mon Sep 17 00:00:00 2001 From: haerdib Date: Wed, 6 Dec 2023 16:00:12 +0100 Subject: [PATCH] fix jsonrpsee client --- src/rpc/jsonrpsee_client/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rpc/jsonrpsee_client/mod.rs b/src/rpc/jsonrpsee_client/mod.rs index 66910d7d9..ec2ff6616 100644 --- a/src/rpc/jsonrpsee_client/mod.rs +++ b/src/rpc/jsonrpsee_client/mod.rs @@ -48,7 +48,9 @@ impl JsonrpseeClient { .build(uri) .await .map_err(|e| Error::Client(Box::new(e)))?; - let client = ClientBuilder::default().build_with_tokio(tx, rx); + let client = ClientBuilder::default() + .max_buffer_capacity_per_subscription(4096) + .build_with_tokio(tx, rx); Ok(Self { inner: Arc::new(client) }) } }