so what are these? auto gc and typed observation (because some flett shit is depending on ts)

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
ldaandCopilot committed 2026-05-01 19:25:03 +07:00 Verified
1 parent b5c0626250
commit b5a28c801c
39 files changed
+874 -327

No files matched your search

+12
View File
@@ -226,6 +226,18 @@ pub async fn serve(daemon: config::DaemonConfig) -> Result<()> {
}
Err(err) => warn!(error = %err, "periodic gc failed"),
}
match app_state
.store
.gc_stale_observations(daemon.observation_retention)
.await
{
Ok(removed) => {
if removed > 0 {
info!(removed, "periodic gc removed stale observations");
}
}
Err(err) => warn!(error = %err, "periodic observation gc failed"),
}
}
join = &mut server => {
let _ = remove_pid_file(&daemon.pid_file);