aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv6/whisper.go
diff options
context:
space:
mode:
authorAdam Babik <a.babik@designfortress.com>2018-08-29 18:56:13 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-29 18:56:13 +0800
commit75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d (patch)
treeb4bfd05a88e02a103f4847546a084be31cbae223 /whisper/whisperv6/whisper.go
parent957496811627d6ef33b9b4232e4d42353d376f1d (diff)
downloadgo-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar
go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.gz
go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.bz2
go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.lz
go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.xz
go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.tar.zst
go-tangerine-75ae5af62a8dbbc4fc547d2b3b4cce192d783b2d.zip
whisper: fix loop in expire() (#17532)
Diffstat (limited to 'whisper/whisperv6/whisper.go')
-rw-r--r--whisper/whisperv6/whisper.go2
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)