Skip to content
Snippets Groups Projects
Commit 52e66d46 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

added identity removal prints

parent 0355f92f
No related branches found
No related tags found
3 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!340Project/channels
......@@ -212,9 +212,12 @@ func (t *manager) track(stop *stoppable.Single) {
continue
case deleteID := <-t.deleteIdentity:
removed := false
for i := range t.tracked {
inQuestion := t.tracked[i]
if inQuestion.Source.Cmp(deleteID) {
jww.INFO.Printf("Removing Identity %s from tracker")
removed = true
t.tracked = append(t.tracked[:i], t.tracked[i+1:]...)
t.save()
// Requires manual deletion in case identity is deleted before expiration
......@@ -222,6 +225,9 @@ func (t *manager) track(stop *stoppable.Single) {
break
}
}
if !removed {
jww.WARN.Printf("Identity %s failed to be removed from tracker")
}
case <-stop.Quit():
t.addrSpace.UnregisterAddressSpaceNotification(addressSpaceSizeChanTag)
stop.ToStopped()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment