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

Method compact

crates/core/src/database_logger.rs:139–146  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

137 }
138
139 fn compact(&mut self) {
140 while self.size > self.max_size {
141 let Some(evicted) = self.log.pop_front() else {
142 break;
143 };
144 self.size -= evicted.len() as u64;
145 }
146 }
147}
148
149impl Logger for MemoryLogger {

Callers 3

appendMethod · 0.80
configure_tracingFunction · 0.80
prepare_testsFunction · 0.80

Calls 2

pop_frontMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected