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

Method latest_lsn

nodedb/src/event/cdc/buffer.rs:218–221  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

216 }
217
218 pub fn latest_lsn(&self) -> Option<u64> {
219 let events = self.events.read().unwrap_or_else(|p| p.into_inner());
220 events.back().map(|e| e.lsn)
221 }
222
223 pub fn total_pushed(&self) -> u64 {
224 self.total_pushed.load(std::sync::atomic::Ordering::Relaxed)

Callers 1

buffer_statsMethod · 0.80

Calls 1

readMethod · 0.45

Tested by

no test coverage detected