aboutsummaryrefslogtreecommitdiff
path: root/src/rpc_client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc_client.rs')
-rw-r--r--src/rpc_client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc_client.rs b/src/rpc_client.rs
index 7995cdfa..9c9726b1 100644
--- a/src/rpc_client.rs
+++ b/src/rpc_client.rs
@@ -106,7 +106,7 @@ impl RpcClient {
let req = Request::builder()
.method(Method::POST)
.uri(uri)
- .body(Body::from(rmp_serde::encode::to_vec_named(msg)?))?;
+ .body(Body::from(rmp_to_vec_all_named(msg)?))?;
let resp_fut = self.client.request(req);
let resp = tokio::time::timeout(timeout, resp_fut).await??;