From 5d591109cd919d31b76982e03f8d85a26d117d9b Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Sat, 15 Aug 2020 22:10:55 +0200 Subject: [PATCH] linters --- cmd/rpcdaemon/service/service.go | 2 +- node/utils_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/rpcdaemon/service/service.go b/cmd/rpcdaemon/service/service.go index 5639b8370..599e946c9 100644 --- a/cmd/rpcdaemon/service/service.go +++ b/cmd/rpcdaemon/service/service.go @@ -8,7 +8,7 @@ import ( "github.com/ledgerwatch/turbo-geth/node" ) -func New(db *ethdb.ObjectDatabase, ethereum *eth.Ethereum, stack *node.Node) { +func New(db ethdb.HasKV, ethereum *eth.Ethereum, stack *node.Node) { apis := commands.GetAPI(db.KV(), core.NewEthBackend(ethereum), []string{"eth", "debug"}) stack.RegisterAPIs(apis) diff --git a/node/utils_test.go b/node/utils_test.go index eea729531..164647a5c 100644 --- a/node/utils_test.go +++ b/node/utils_test.go @@ -82,11 +82,11 @@ func (f *FullService) Stop() error { return nil } func (f *FullService) Protocols() []p2p.Protocol { return []p2p.Protocol{ - p2p.Protocol{ + { Name: "test1", Version: uint(1), }, - p2p.Protocol{ + { Name: "test2", Version: uint(2), },