aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv2
diff options
context:
space:
mode:
authorEgon Elbre <egonelbre@gmail.com>2017-08-08 19:48:06 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-08 19:48:06 +0800
commitd375193797e8198a82c6a1796064ffb289c6956e (patch)
treee725c3f2b03367933e4832bb603458b0c9bce500 /whisper/whisperv2
parent374c49e0ac0f636eb37a31833f91f28ad1859750 (diff)
downloaddexon-d375193797e8198a82c6a1796064ffb289c6956e.tar
dexon-d375193797e8198a82c6a1796064ffb289c6956e.tar.gz
dexon-d375193797e8198a82c6a1796064ffb289c6956e.tar.bz2
dexon-d375193797e8198a82c6a1796064ffb289c6956e.tar.lz
dexon-d375193797e8198a82c6a1796064ffb289c6956e.tar.xz
dexon-d375193797e8198a82c6a1796064ffb289c6956e.tar.zst
dexon-d375193797e8198a82c6a1796064ffb289c6956e.zip
whisper: fix megacheck warnings (#14925)
* whisper: fix megacheck warnings * whisper/whisperv5: regenerate json codec to fix unused override type
Diffstat (limited to 'whisper/whisperv2')
-rw-r--r--whisper/whisperv2/api.go9
-rw-r--r--whisper/whisperv2/whisper.go4
2 files changed, 2 insertions, 11 deletions
diff --git a/whisper/whisperv2/api.go b/whisper/whisperv2/api.go
index 0509453ba..5c6d17095 100644
--- a/whisper/whisperv2/api.go
+++ b/whisper/whisperv2/api.go
@@ -377,15 +377,6 @@ func (w *whisperFilter) retrieve() (messages []WhisperMessage) {
return
}
-// activity returns the last time instance when client requests were executed on
-// the filter.
-func (w *whisperFilter) activity() time.Time {
- w.lock.RLock()
- defer w.lock.RUnlock()
-
- return w.update
-}
-
// newWhisperFilter creates a new serialized, poll based whisper topic filter.
func newWhisperFilter(id hexutil.Uint, ref *Whisper) *whisperFilter {
return &whisperFilter{
diff --git a/whisper/whisperv2/whisper.go b/whisper/whisperv2/whisper.go
index 1d7c21bd1..61c36918d 100644
--- a/whisper/whisperv2/whisper.go
+++ b/whisper/whisperv2/whisper.go
@@ -173,7 +173,7 @@ func (self *Whisper) Send(envelope *Envelope) error {
// Start implements node.Service, starting the background data propagation thread
// of the Whisper protocol.
func (self *Whisper) Start(*p2p.Server) error {
- log.Info(fmt.Sprint("Whisper started"))
+ log.Info("Whisper started")
go self.update()
return nil
}
@@ -182,7 +182,7 @@ func (self *Whisper) Start(*p2p.Server) error {
// of the Whisper protocol.
func (self *Whisper) Stop() error {
close(self.quit)
- log.Info(fmt.Sprint("Whisper stopped"))
+ log.Info("Whisper stopped")
return nil
}