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 (
"bytes"
"testing"
"crypto/ecdsa"
"testing"
"time"
"github.com/ethereum/go-ethereum/common"
@ -45,7 +45,7 @@ func TestMultipleTopicCopyInNewMessageFilter(t *testing.T) {
t.Fatalf("Error generating symmetric key: %v", err)
}
api := PublicWhisperAPI{
w: w,
w: w,
lastUsed: make(map[string]time.Time),
}
@ -54,7 +54,7 @@ func TestMultipleTopicCopyInNewMessageFilter(t *testing.T) {
crit := Criteria{
SymKeyID: keyID,
Topics: []TopicType{TopicType(t1), TopicType(t2)},
Topics: []TopicType{TopicType(t1), TopicType(t2)},
}
_, err = api.NewMessageFilter(crit)
@ -75,4 +75,4 @@ func TestMultipleTopicCopyInNewMessageFilter(t *testing.T) {
if !found {
t.Fatalf("Could not find filter with both topics")
}
}
}