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

Method next

nodedb-wal/src/mmap_reader.rs:242–248  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

240 type Item = Result<WalRecord>;
241
242 fn next(&mut self) -> Option<Self::Item> {
243 match self.reader.next_record() {
244 Ok(Some(record)) => Some(Ok(record)),
245 Ok(None) => None,
246 Err(e) => Some(Err(e)),
247 }
248 }
249}
250
251/// Minimum number of segments to justify parallel replay overhead.

Callers

nothing calls this directly

Calls 1

next_recordMethod · 0.45

Tested by

no test coverage detected