diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-01-02 18:13:24 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-01-02 18:13:24 +0800 |
commit | b98aa3b4f169b1210e187d1ba6c402d052ad70c5 (patch) | |
tree | e397a159b9e3c793661ee4349e6d749646191201 /whisper/whisperv2/whisper.go | |
parent | 6cd6b921ac57480d95af8b9bec2424e1f89fa196 (diff) | |
download | dexon-b98aa3b4f169b1210e187d1ba6c402d052ad70c5.tar dexon-b98aa3b4f169b1210e187d1ba6c402d052ad70c5.tar.gz dexon-b98aa3b4f169b1210e187d1ba6c402d052ad70c5.tar.bz2 dexon-b98aa3b4f169b1210e187d1ba6c402d052ad70c5.tar.lz dexon-b98aa3b4f169b1210e187d1ba6c402d052ad70c5.tar.xz dexon-b98aa3b4f169b1210e187d1ba6c402d052ad70c5.tar.zst dexon-b98aa3b4f169b1210e187d1ba6c402d052ad70c5.zip |
whisper/whisper2: fix Go 1.10 vet issues on type mismatches (#15783)
Diffstat (limited to 'whisper/whisperv2/whisper.go')
-rw-r--r-- | whisper/whisperv2/whisper.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/whisperv2/whisper.go b/whisper/whisperv2/whisper.go index 61c36918d..e111a3414 100644 --- a/whisper/whisperv2/whisper.go +++ b/whisper/whisperv2/whisper.go @@ -262,7 +262,7 @@ func (self *Whisper) add(envelope *Envelope) error { // Insert the message into the tracked pool hash := envelope.Hash() if _, ok := self.messages[hash]; ok { - log.Trace(fmt.Sprintf("whisper envelope already cached: %x\n", envelope)) + log.Trace(fmt.Sprintf("whisper envelope already cached: %x\n", hash)) return nil } self.messages[hash] = envelope @@ -277,7 +277,7 @@ func (self *Whisper) add(envelope *Envelope) error { // Notify the local node of a message arrival go self.postEvent(envelope) } - log.Trace(fmt.Sprintf("cached whisper envelope %x\n", envelope)) + log.Trace(fmt.Sprintf("cached whisper envelope %x\n", hash)) return nil } |