aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv5
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-01-06 22:52:03 +0800
committerFelix Lange <fjl@twurst.com>2017-01-06 22:52:03 +0800
commit35a7dcb162546f7f31cb6492f716cb93159218d7 (patch)
tree4828026948031719a703a87e0ce909e82da21d3b /whisper/whisperv5
parente0fde022909d272e55fb9ea2d4f8cfe9f178dba8 (diff)
downloadgo-tangerine-35a7dcb162546f7f31cb6492f716cb93159218d7.tar
go-tangerine-35a7dcb162546f7f31cb6492f716cb93159218d7.tar.gz
go-tangerine-35a7dcb162546f7f31cb6492f716cb93159218d7.tar.bz2
go-tangerine-35a7dcb162546f7f31cb6492f716cb93159218d7.tar.lz
go-tangerine-35a7dcb162546f7f31cb6492f716cb93159218d7.tar.xz
go-tangerine-35a7dcb162546f7f31cb6492f716cb93159218d7.tar.zst
go-tangerine-35a7dcb162546f7f31cb6492f716cb93159218d7.zip
all: gofmt -w -s
Diffstat (limited to 'whisper/whisperv5')
-rw-r--r--whisper/whisperv5/peer.go2
-rw-r--r--whisper/whisperv5/whisper.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/whisper/whisperv5/peer.go b/whisper/whisperv5/peer.go
index 4273cfce1..634045504 100644
--- a/whisper/whisperv5/peer.go
+++ b/whisper/whisperv5/peer.go
@@ -148,7 +148,7 @@ func (peer *Peer) expire() {
return true
})
// Dump all known but unavailable
- for hash, _ := range unmark {
+ for hash := range unmark {
peer.known.Remove(hash)
}
}
diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go
index 789adbdb3..b514c022e 100644
--- a/whisper/whisperv5/whisper.go
+++ b/whisper/whisperv5/whisper.go
@@ -105,7 +105,7 @@ func (w *Whisper) Version() uint {
func (w *Whisper) getPeer(peerID []byte) (*Peer, error) {
w.peerMu.Lock()
defer w.peerMu.Unlock()
- for p, _ := range w.peers {
+ for p := range w.peers {
id := p.peer.ID()
if bytes.Equal(peerID, id[:]) {
return p, nil