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

Method drain_for_persistence

nodedb/src/control/security/audit/log.rs:245–247  ·  view source on GitHub ↗

Drain entries for persistence (WAL or segment file).

(&mut self)

Source from the content-addressed store, hash-verified

243
244 /// Drain entries for persistence (WAL or segment file).
245 pub fn drain_for_persistence(&mut self) -> Vec<AuditEntry> {
246 self.entries.drain(..).collect()
247 }
248
249 /// Get the current last hash (for chain continuity on restart).
250 pub fn last_hash(&self) -> &str {

Callers 1

drain_for_persistenceFunction · 0.45

Calls 2

collectMethod · 0.80
drainMethod · 0.45

Tested by 1

drain_for_persistenceFunction · 0.36