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

added identity removal prints

parent 0355f92f
Branches
Tags
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) { ...@@ -212,9 +212,12 @@ func (t *manager) track(stop *stoppable.Single) {
continue continue
case deleteID := <-t.deleteIdentity: case deleteID := <-t.deleteIdentity:
removed := false
for i := range t.tracked { for i := range t.tracked {
inQuestion := t.tracked[i] inQuestion := t.tracked[i]
if inQuestion.Source.Cmp(deleteID) { 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.tracked = append(t.tracked[:i], t.tracked[i+1:]...)
t.save() t.save()
// Requires manual deletion in case identity is deleted before expiration // Requires manual deletion in case identity is deleted before expiration
...@@ -222,6 +225,9 @@ func (t *manager) track(stop *stoppable.Single) { ...@@ -222,6 +225,9 @@ func (t *manager) track(stop *stoppable.Single) {
break break
} }
} }
if !removed {
jww.WARN.Printf("Identity %s failed to be removed from tracker")
}
case <-stop.Quit(): case <-stop.Quit():
t.addrSpace.UnregisterAddressSpaceNotification(addressSpaceSizeChanTag) t.addrSpace.UnregisterAddressSpaceNotification(addressSpaceSizeChanTag)
stop.ToStopped() stop.ToStopped()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment