MCPcopy Create free account
hub / github.com/GCWing/BitFun / flush_internal

Method flush_internal

src/crates/services/services-core/src/filesystem/tree.rs:291–304  ·  view source on GitHub ↗
(&self, force: bool)

Source from the content-addressed store, hash-verified

289 }
290
291 fn flush_internal(&self, force: bool) {
292 let should_flush = force || self.elapsed_since_last_flush() >= self.flush_interval;
293 if !should_flush {
294 return;
295 }
296
297 let batch = self.drain_batch();
298 if batch.is_empty() {
299 return;
300 }
301
302 (self.on_flush)(batch);
303 self.mark_flushed();
304 }
305}
306
307impl FileSearchProgressSink for BatchedFileSearchProgressSink {

Callers 2

reportMethod · 0.80
flushMethod · 0.80

Calls 4

drain_batchMethod · 0.80
mark_flushedMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected