Skip to main content

CompactionObserved

Type Alias CompactionObserved 

Source
pub type CompactionObserved = Arc<dyn Fn(&str, &str) + Send + Sync>;
Expand description

Compaction-observation hook: invoked synchronously with (identity, session_key) the moment a CompactionCompleted event is observed — before, and regardless of, the harvest attempt (skipped and budget-denied harvests included). For harvest/hygiene sequencing observers only. Deliberately NOT the recall budget-reset path: distiller sinks register only when the distiller is enabled, so the coordinator’s on_session_compacted reset is driven by the gateway’s always-on member-event sink instead — do not couple it back here.

Aliased Type§

pub struct CompactionObserved { /* private fields */ }