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

Method close

crates/commitlog/src/stream/writer.rs:413–415  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

411
412impl<W: AsyncWriteExt + AsyncFsync + Unpin> CurrentSegment<W> {
413 async fn close(mut self) -> io::Result<()> {
414 self.flush_and_sync().await
415 }
416
417 async fn flush_and_sync(&mut self) -> io::Result<()> {
418 self.segment.flush().await?;

Callers

nothing calls this directly

Calls 1

flush_and_syncMethod · 0.45

Tested by

no test coverage detected