MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / drop

Method drop

crates/commitlog/src/commitlog.rs:365–371  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

363
364impl<R: Repo, T> Drop for Generic<R, T> {
365 fn drop(&mut self) {
366 if !self.panicked
367 && let Err(e) = self.flush_and_sync()
368 {
369 error!("failed to commit on drop: {e}");
370 }
371 }
372}
373
374/// The most recent non empty segment in repo `R`.

Callers

nothing calls this directly

Calls 1

flush_and_syncMethod · 0.45

Tested by

no test coverage detected