aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs
index 4333080..02b4e7d 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -8,6 +8,8 @@ use futures::Stream;
use log::info;
+use serde::Serialize;
+
use tokio::sync::watch;
/// A node's identifier, which is also its public cryptographic key
@@ -34,7 +36,8 @@ where
let mut se = rmp_serde::Serializer::new(&mut wr)
.with_struct_map()
.with_string_variants();
- let (_, stream) = val.serialize_msg(&mut se)?;
+ let (val, stream) = val.serialize_msg();
+ val.serialize(&mut se)?;
Ok((wr, stream))
}