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

Method open_segment_reader_async

crates/commitlog/src/repo/mem.rs:134–136  ·  view source on GitHub ↗
(&self, offset: u64)

Source from the content-addressed store, hash-verified

132 type AsyncSegmentReader = tokio::io::BufReader<Segment>;
133
134 async fn open_segment_reader_async(&self, offset: u64) -> io::Result<Self::AsyncSegmentReader> {
135 self.open_segment_writer(offset).map(tokio::io::BufReader::new)
136 }
137 }
138
139 #[cfg(test)]

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45
open_segment_writerMethod · 0.45

Tested by

no test coverage detected