Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_retrieve
Function · 0.70
entries_range
Function · 0.70
conflict_detection
Function · 0.70
snapshot_compaction
Function · 0.70
Calls
no outgoing calls
Tested by
4
append_and_retrieve
Function · 0.56
entries_range
Function · 0.56
conflict_detection
Function · 0.56
snapshot_compaction
Function · 0.56