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

Method tail

crates/core/src/database_logger.rs:95–98  ·  view source on GitHub ↗
(&self, n: u32)

Source from the content-addressed store, hash-verified

93 }
94
95 fn tail(&self, n: u32) -> io::Result<Bytes> {
96 let mut file = File::open(&self.path)?;
97 read_lines(&mut file, n).map(Into::into)
98 }
99
100 fn tail_stream(&self, n: Option<u32>) -> LogStream {
101 stream::once(asyncify({

Callers 6

runMethod · 0.80
tail_nFunction · 0.80
tail_fFunction · 0.80
tail_nfFunction · 0.80
logsFunction · 0.80
read_logMethod · 0.80

Calls 15

read_linesFunction · 0.85
flattenMethod · 0.80
tail_streamMethod · 0.80
lockMethod · 0.80
sync_dataMethod · 0.80
sendMethod · 0.65
openFunction · 0.50
OkFunction · 0.50
asyncifyFunction · 0.50
mapMethod · 0.45
lenMethod · 0.45
collectMethod · 0.45

Tested by

no test coverage detected