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

Function with_segment_context

crates/commitlog/src/repo/mod.rs:455–460  ·  view source on GitHub ↗
(context: &'static str, repo: &R, offset: u64, source: io::Error)

Source from the content-addressed store, hash-verified

453}
454
455fn with_segment_context<R: Repo>(context: &'static str, repo: &R, offset: u64, source: io::Error) -> io::Error {
456 io::Error::new(
457 source.kind(),
458 format!("{} [{}]: {}", segment_label(repo, offset), context, source),
459 )
460}
461
462/// Allocate [Options::max_segment_size] of space for [FileLike]
463/// if the `fallocate` feature is enabled,

Callers 2

resume_segment_writerFunction · 0.85
open_segment_readerFunction · 0.85

Calls 2

newFunction · 0.50
kindMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…