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

Function create_reader

crates/commitlog/tests/streaming/mod.rs:216–221  ·  view source on GitHub ↗
(path: &Path, range: R)

Source from the content-addressed store, hash-verified

214}
215
216fn create_reader<R: RangeBounds<u64>>(path: &Path, range: R) -> impl AsyncBufRead + use<R> {
217 BufReader::new(StreamReader::new(stream::commits(
218 repo::Fs::new(CommitLogDir::from_path_unchecked(path), None).unwrap(),
219 range,
220 )))
221}
222
223async fn create_dirs(root: &Path) -> (PathBuf, PathBuf) {
224 let src = root.join("a");

Callers 4

copy_allFunction · 0.85
copy_rangesFunction · 0.85
copy_invalid_rangeFunction · 0.85
trim_garbageFunction · 0.85

Calls 3

newFunction · 0.50
commitsFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…