fix
Build and Publish / Metadata (push) Successful in 9s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 2m35s

This commit is contained in:
mats committed 2026-09-22 22:09:32 +02:00
1 parent e81b8c2fcd
commit 0052822e49
7 files changed
+94 -1

No files matched your search

+8
View File
@@ -227,6 +227,14 @@ func (t *Tracker) Record(kind, service, title string, sample Sample) {
}
}
// Restore records an occurrence loaded from the persistent occurrence store.
// It deliberately does not invoke the occurrence sink, avoiding duplicate
// writes while rebuilding the in-memory index during startup.
func (t *Tracker) Restore(kind, service, title string, sample Sample) {
normalizeSample(&sample, title)
_, _ = t.record(kind, service, title, sample)
}
func (t *Tracker) record(kind, service, title string, sample Sample) (string, OccurrenceSink) {
id := Fingerprint(kind, service, NormalizeTitle(title))
bucket := HourBucket(sample.Timestamp)