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

This commit is contained in:
Péter Szilágyi 2018-01-02 12:13:24 +02:00 committed by Felix Lange
parent 6cd6b921ac
commit b98aa3b4f1
1 changed files with 2 additions and 2 deletions

View File

@ -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
}