Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ load_hard_state
Method
load_hard_state
nodedb-raft/src/storage.rs:92–94 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
90
}
91
92
fn load_hard_state(&self) -> Result<HardState> {
93
Ok(self.hard_state.clone())
94
}
95
}
96
97
#[cfg(test)]
Callers
2
mem_storage_hard_state
Function · 0.45
restore
Method · 0.45
Calls
1
clone
Method · 0.45
Tested by
1
mem_storage_hard_state
Function · 0.36