MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / set_compaction_config

Method set_compaction_config

nodedb/src/data/executor/core_loop/maintenance.rs:10–17  ·  view source on GitHub ↗

Set compaction parameters (called after open, before event loop).

(
        &mut self,
        interval: std::time::Duration,
        tombstone_threshold: f64,
    )

Source from the content-addressed store, hash-verified

8impl CoreLoop {
9 /// Set compaction parameters (called after open, before event loop).
10 pub fn set_compaction_config(
11 &mut self,
12 interval: std::time::Duration,
13 tombstone_threshold: f64,
14 ) {
15 self.compaction_interval = interval;
16 self.compaction_tombstone_threshold = tombstone_threshold;
17 }
18
19 /// Set shared system metrics reference (called after open, before event loop).
20 ///

Callers 1

spawn_coreFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected