aboutsummaryrefslogtreecommitdiff
path: root/jsonrpc/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'jsonrpc/src/client.rs')
-rw-r--r--jsonrpc/src/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpc/src/client.rs b/jsonrpc/src/client.rs
index d5caebe..1ce9ecb 100644
--- a/jsonrpc/src/client.rs
+++ b/jsonrpc/src/client.rs
@@ -25,7 +25,7 @@ impl Client {
/// Creates a new RPC client.
pub fn new(conn: Conn, config: ClientConfig) -> Self {
let codec_config = CodecConfig {
- max_allowed_msg_size: 0,
+ max_allowed_buffer_size: 0,
..Default::default()
};
let codec = Codec::new(conn, codec_config);
@@ -36,7 +36,7 @@ impl Client {
pub async fn new_with_endpoint(endpoint: &Endpoint, config: ClientConfig) -> Result<Self> {
let conn = dial(endpoint).await?;
let codec_config = CodecConfig {
- max_allowed_msg_size: 0,
+ max_allowed_buffer_size: 0,
..Default::default()
};
let codec = Codec::new(conn, codec_config);