diff options
author | Adam Babik <a.babik@designfortress.com> | 2018-08-29 18:56:13 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-29 18:56:13 +0800 |
commit | 75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d (patch) | |
tree | b4bfd05a88e02a103f4847546a084be31cbae223 /whisper/whisperv5/whisper.go | |
parent | 957496811627d6ef33b9b4232e4d42353d376f1d (diff) | |
download | go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.gz go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.zst go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.zip |
whisper: fix loop in expire() (#17532)
Diffstat (limited to 'whisper/whisperv5/whisper.go')
-rw-r--r-- | whisper/whisperv5/whisper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go index 8e0662327..465545821 100644 --- a/whisper/whisperv5/whisper.go +++ b/whisper/whisperv5/whisper.go @@ -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) |