Commit b98aa3b4 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by Felix Lange

whisper/whisper2: fix Go 1.10 vet issues on type mismatches (#15783)

parent 6cd6b921
...@@ -262,7 +262,7 @@ func (self *Whisper) add(envelope *Envelope) error { ...@@ -262,7 +262,7 @@ func (self *Whisper) add(envelope *Envelope) error {
// Insert the message into the tracked pool // Insert the message into the tracked pool
hash := envelope.Hash() hash := envelope.Hash()
if _, ok := self.messages[hash]; ok { 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 return nil
} }
self.messages[hash] = envelope self.messages[hash] = envelope
...@@ -277,7 +277,7 @@ func (self *Whisper) add(envelope *Envelope) error { ...@@ -277,7 +277,7 @@ func (self *Whisper) add(envelope *Envelope) error {
// Notify the local node of a message arrival // Notify the local node of a message arrival
go self.postEvent(envelope) 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 return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment