aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisper.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-16 16:20:01 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-16 16:20:01 +0800
commitee6531c5ff712307325e8866b73397179f4bb8cd (patch)
tree5a3d44c18fbf4eb1955d866ba4742aa8cc535d58 /whisper/whisper.go
parent6ceb253f743ec0d2bdd9a676c7f365de2201470c (diff)
downloadgo-tangerine-ee6531c5ff712307325e8866b73397179f4bb8cd.tar
go-tangerine-ee6531c5ff712307325e8866b73397179f4bb8cd.tar.gz
go-tangerine-ee6531c5ff712307325e8866b73397179f4bb8cd.tar.bz2
go-tangerine-ee6531c5ff712307325e8866b73397179f4bb8cd.tar.lz
go-tangerine-ee6531c5ff712307325e8866b73397179f4bb8cd.tar.xz
go-tangerine-ee6531c5ff712307325e8866b73397179f4bb8cd.tar.zst
go-tangerine-ee6531c5ff712307325e8866b73397179f4bb8cd.zip
whisper: remove dead code, rename a few constants
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r--whisper/whisper.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index b83e3f1c6..f04075e1f 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -25,8 +25,8 @@ const (
signatureFlag = byte(1 << 7)
signatureLength = 65
- expirationTicks = 800 * time.Millisecond
- transmissionTicks = 300 * time.Millisecond
+ expirationCycle = 800 * time.Millisecond
+ transmissionCycle = 300 * time.Millisecond
)
const (
@@ -275,7 +275,7 @@ func createFilter(message *Message, topics []Topic) filter.Filter {
// state by expiring stale messages from the pool.
func (self *Whisper) update() {
// Start a ticker to check for expirations
- expire := time.NewTicker(expirationTicks)
+ expire := time.NewTicker(expirationCycle)
// Repeat updates until termination is requested
for {