whisper: fix loop in expire() (#17532)
This commit is contained in:
committed by
Péter Szilágyi
parent
9574968116
commit
75ae5af62a
@@ -717,7 +717,7 @@ func (w *Whisper) expire() {
|
||||
w.stats.messagesCleared++
|
||||
w.stats.memoryCleared += sz
|
||||
w.stats.memoryUsed -= sz
|
||||
return true
|
||||
return false
|
||||
})
|
||||
w.expirations[expiry].Clear()
|
||||
delete(w.expirations, expiry)
|
||||
|
Reference in New Issue
Block a user