Method
write_snapshot
(&self, snapshot: &TileSnapshot)
Source from the content-addressed store, hash-verified
| 236 | |
| 237 | impl 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
Tested by
no test coverage detected