MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / roundtrip

Function roundtrip

nodedb-cluster/src/rpc_codec/cluster_mgmt.rs:176–179  ·  view source on GitHub ↗
(rpc: RaftRpc)

Source from the content-addressed store, hash-verified

174 use super::*;
175
176 fn roundtrip(rpc: RaftRpc) -> RaftRpc {
177 let encoded = super::super::encode(&rpc).unwrap();
178 super::super::decode(&encoded).unwrap()
179 }
180
181 #[test]
182 fn roundtrip_join_request() {

Callers 2

roundtrip_join_requestFunction · 0.70
roundtrip_join_responseFunction · 0.70

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by 2

roundtrip_join_requestFunction · 0.56
roundtrip_join_responseFunction · 0.56