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

Function roundtrip

nodedb-cluster/src/rpc_codec/raft_msgs.rs:114–117  ·  view source on GitHub ↗
(rpc: RaftRpc)

Source from the content-addressed store, hash-verified

112 use nodedb_raft::message::LogEntry;
113
114 fn roundtrip(rpc: RaftRpc) -> RaftRpc {
115 let encoded = super::super::encode(&rpc).unwrap();
116 super::super::decode(&encoded).unwrap()
117 }
118
119 #[test]
120 fn roundtrip_append_entries_request() {

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70