discovery stale records dropout implemented
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user