From 0fa47c6dfa20056b826d5b0aac84197216f2ae66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 16 Jul 2019 18:07:08 +0200 Subject: [PATCH] Lint fixes --- cli/client.go | 1 + go.mod | 1 - node/api.go | 11 ++++++----- node/builder.go | 3 ++- node/client/import.go | 3 ++- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/cli/client.go b/cli/client.go index f6bd3e9b0..fd60990f7 100644 --- a/cli/client.go +++ b/cli/client.go @@ -2,6 +2,7 @@ package cli import ( "fmt" + "gopkg.in/urfave/cli.v2" ) diff --git a/go.mod b/go.mod index 4b521a522..02c26b08b 100644 --- a/go.mod +++ b/go.mod @@ -64,7 +64,6 @@ require ( go4.org v0.0.0-20190313082347-94abd6928b1d // indirect golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522 - google.golang.org/appengine v1.4.0 // indirect gopkg.in/urfave/cli.v2 v2.0.0-20180128182452-d3ae77c26ac8 launchpad.net/gocheck v0.0.0-20140225173054-000000000087 // indirect ) diff --git a/node/api.go b/node/api.go index c8b3a7417..9c58d3041 100644 --- a/node/api.go +++ b/node/api.go @@ -2,6 +2,7 @@ package node import ( "context" + "github.com/filecoin-project/go-lotus/api" "github.com/filecoin-project/go-lotus/build" "github.com/filecoin-project/go-lotus/chain" @@ -18,11 +19,11 @@ import ( type API struct { client.LocalStorage - Host host.Host - Chain *chain.ChainStore - PubSub *pubsub.PubSub - Mpool *chain.MessagePool - Wallet *chain.Wallet + Host host.Host + Chain *chain.ChainStore + PubSub *pubsub.PubSub + Mpool *chain.MessagePool + Wallet *chain.Wallet } func (a *API) ChainSubmitBlock(ctx context.Context, blk *chain.BlockMsg) error { diff --git a/node/builder.go b/node/builder.go index 782b98e61..3a595147b 100644 --- a/node/builder.go +++ b/node/builder.go @@ -3,10 +3,11 @@ package node import ( "context" "errors" - "github.com/ipfs/go-filestore" "reflect" "time" + "github.com/ipfs/go-filestore" + "github.com/ipfs/go-datastore" blockstore "github.com/ipfs/go-ipfs-blockstore" exchange "github.com/ipfs/go-ipfs-exchange-interface" diff --git a/node/client/import.go b/node/client/import.go index f2859f0cf..605a5bc50 100644 --- a/node/client/import.go +++ b/node/client/import.go @@ -3,10 +3,11 @@ package client import ( "context" "errors" + "os" + "github.com/filecoin-project/go-lotus/api" "github.com/ipfs/go-filestore" "go.uber.org/fx" - "os" "github.com/ipfs/go-cid" chunker "github.com/ipfs/go-ipfs-chunker"