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

Method write_snapshot

nodedb/src/control/array_sync/snapshot_store.rs:238–243  ·  view source on GitHub ↗
(&self, snapshot: &TileSnapshot)

Source from the content-addressed store, hash-verified

236
237impl SnapshotSink for OriginSnapshotStore {
238 fn write_snapshot(&self, snapshot: &TileSnapshot) -> nodedb_array::error::ArrayResult<()> {
239 self.put(snapshot)
240 .map_err(|e| nodedb_array::error::ArrayError::SegmentCorruption {
241 detail: format!("OriginSnapshotStore::write_snapshot: {e}"),
242 })
243 }
244}
245
246// ─── Tests ────────────────────────────────────────────────────────────────────

Callers

nothing calls this directly

Calls 1

putMethod · 0.45

Tested by

no test coverage detected