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/whisperv6/whisper.go | |
parent | 957496811627d6ef33b9b4232e4d42353d376f1d (diff) | |
download | dexon-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar dexon-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.gz dexon-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.bz2 dexon-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.lz dexon-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.xz dexon-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.zst dexon-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.zip |
whisper: fix loop in expire() (#17532)
Diffstat (limited to 'whisper/whisperv6/whisper.go')
-rw-r--r-- | whisper/whisperv6/whisper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/whisperv6/whisper.go b/whisper/whisperv6/whisper.go index 34c1256a6..be633e7ff 100644 --- a/whisper/whisperv6/whisper.go +++ b/whisper/whisperv6/whisper.go @@ -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) |