aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/mailserver
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/mailserver
parent374c49e0ac0f636eb37a31833f91f28ad1859750 (diff)
downloadgo-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar
go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.gz
go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.bz2
go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.lz
go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.xz
go-tangerine-d375193797e8198a82c6a1796064ffb289c6956e.tar.zst
go-tangerine-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/mailserver')
-rw-r--r--whisper/mailserver/mailserver.go2
-rw-r--r--whisper/mailserver/server_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/whisper/mailserver/mailserver.go b/whisper/mailserver/mailserver.go
index 42a0671a3..0ec6ec570 100644
--- a/whisper/mailserver/mailserver.go
+++ b/whisper/mailserver/mailserver.go
@@ -104,7 +104,7 @@ func (s *WMailServer) Archive(env *whisper.Envelope) {
func (s *WMailServer) DeliverMail(peer *whisper.Peer, request *whisper.Envelope) {
if peer == nil {
- log.Error(fmt.Sprint("Whisper peer is nil"))
+ log.Error("Whisper peer is nil")
return
}
diff --git a/whisper/mailserver/server_test.go b/whisper/mailserver/server_test.go
index 95bf2bb43..9155ee85a 100644
--- a/whisper/mailserver/server_test.go
+++ b/whisper/mailserver/server_test.go
@@ -168,7 +168,7 @@ func singleRequest(t *testing.T, server *WMailServer, env *whisper.Envelope, p *
src[0]++
ok, lower, upper, topic = server.validateRequest(src, request)
if ok {
- t.Fatalf("request validation false positive, seed: %d.", seed)
+ t.Fatalf("request validation false positive, seed: %d (lower: %d, upper: %d).", seed, lower, upper)
}
}