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

Method open_segment_reader_async

crates/commitlog/src/repo/fs.rs:380–383  ·  view source on GitHub ↗
(&self, offset: u64)

Source from the content-addressed store, hash-verified

378 type AsyncSegmentReader = spacetimedb_fs_utils::compression::AsyncCompressReader<tokio::fs::File>;
379
380 async fn open_segment_reader_async(&self, offset: u64) -> io::Result<Self::AsyncSegmentReader> {
381 let file = tokio::fs::File::open(self.segment_path(offset)).await?;
382 spacetimedb_fs_utils::compression::AsyncCompressReader::new(file).await
383 }
384}
385
386#[cfg(feature = "streaming")]

Callers

nothing calls this directly

Calls 3

segment_pathMethod · 0.80
openFunction · 0.50
newFunction · 0.50

Tested by

no test coverage detected