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

Method write_snapshot

nodedb-array/src/sync/gc.rs:134–140  ·  view source on GitHub ↗
(&self, snapshot: &TileSnapshot)

Source from the content-addressed store, hash-verified

132
133impl SnapshotSink for MockSnapshotSink {
134 fn write_snapshot(&self, snapshot: &TileSnapshot) -> crate::error::ArrayResult<()> {
135 self.snapshots
136 .lock()
137 .expect("invariant: MockSnapshotSink mutex is not poisoned")
138 .push(snapshot.clone());
139 Ok(())
140 }
141}
142
143// ─── Tests ───────────────────────────────────────────────────────────────────

Callers 1

collapse_belowFunction · 0.45

Calls 4

lockMethod · 0.80
pushMethod · 0.45
expectMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected