whisper: fix linter problems

This commit is contained in:
Guillaume Ballet 2018-03-27 09:26:23 +02:00
parent 090b2b0c9b
commit 563643e66f

View file

@ -18,8 +18,8 @@ package whisperv6
import ( import (
"bytes" "bytes"
"testing"
"crypto/ecdsa" "crypto/ecdsa"
"testing"
"time" "time"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
@ -45,7 +45,7 @@ func TestMultipleTopicCopyInNewMessageFilter(t *testing.T) {
t.Fatalf("Error generating symmetric key: %v", err) t.Fatalf("Error generating symmetric key: %v", err)
} }
api := PublicWhisperAPI{ api := PublicWhisperAPI{
w: w, w: w,
lastUsed: make(map[string]time.Time), lastUsed: make(map[string]time.Time),
} }
@ -54,7 +54,7 @@ func TestMultipleTopicCopyInNewMessageFilter(t *testing.T) {
crit := Criteria{ crit := Criteria{
SymKeyID: keyID, SymKeyID: keyID,
Topics: []TopicType{TopicType(t1), TopicType(t2)}, Topics: []TopicType{TopicType(t1), TopicType(t2)},
} }
_, err = api.NewMessageFilter(crit) _, err = api.NewMessageFilter(crit)