discovery stale records dropout implemented

This commit is contained in:
Stephan D
2026-02-27 18:07:42 +01:00
parent 077c510690
commit d47159278b
6 changed files with 202 additions and 19 deletions

View File

@@ -117,9 +117,18 @@ func (a *Announcer) sendAnnouncement() {
}
func (a *Announcer) sendHeartbeat() {
entryKey := registryKey(
a.announce.Service,
a.announce.Rail,
legacyNetworkFromCurrencies(a.announce.Currencies),
a.announce.Operations,
a.announce.Version,
a.announce.InstanceID,
)
hb := Heartbeat{
ID: a.announce.ID,
InstanceID: a.announce.InstanceID,
EntryKey: entryKey,
Status: "ok",
TS: time.Now().Unix(),
}