eth/filters: golint fixes

This commit is contained in:
Mike Kinney 2019-12-09 22:09:26 -08:00
parent e6df8a55cc
commit 784cf0a407
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,7 @@ import (
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
) )
// Backend interface
type Backend interface { type Backend interface {
ChainDb() ethdb.Database ChainDb() ethdb.Database
EventMux() *event.TypeMux EventMux() *event.TypeMux

View file

@ -53,7 +53,7 @@ const (
PendingTransactionsSubscription PendingTransactionsSubscription
// BlocksSubscription queries hashes for blocks that are imported // BlocksSubscription queries hashes for blocks that are imported
BlocksSubscription BlocksSubscription
// LastSubscription keeps track of the last index // LastIndexSubscription keeps track of the last index
LastIndexSubscription LastIndexSubscription
) )
@ -71,6 +71,7 @@ const (
) )
var ( var (
// ErrInvalidSubscriptionID is the invalid id error
ErrInvalidSubscriptionID = errors.New("invalid id") ErrInvalidSubscriptionID = errors.New("invalid id")
) )