Skip to content

Commit

Permalink
whisper/whisper2: fix Go 1.10 vet issues on type mismatches (ethereum…
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe authored and fjl committed Jan 2, 2018
1 parent 6cd6b92 commit b98aa3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whisper/whisperv2/whisper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit b98aa3b

Please sign in to comment.