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

Function make_entry

nodedb-raft/src/log.rs:177–183  ·  view source on GitHub ↗
(term: u64, index: u64)

Source from the content-addressed store, hash-verified

175 use crate::storage::MemStorage;
176
177 fn make_entry(term: u64, index: u64) -> LogEntry {
178 LogEntry {
179 term,
180 index,
181 data: vec![],
182 }
183 }
184
185 #[test]
186 fn empty_log() {

Callers 4

append_and_retrieveFunction · 0.70
entries_rangeFunction · 0.70
conflict_detectionFunction · 0.70
snapshot_compactionFunction · 0.70

Calls

no outgoing calls

Tested by 4

append_and_retrieveFunction · 0.56
entries_rangeFunction · 0.56
conflict_detectionFunction · 0.56
snapshot_compactionFunction · 0.56