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