Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_request
Function · 0.70
roundtrip_join_response
Function · 0.70
Calls
2
encode
Function · 0.70
decode
Function · 0.70
Tested by
2
roundtrip_join_request
Function · 0.56
roundtrip_join_response
Function · 0.56