From cf96ad4fdb0d2fe7e6e0250d5adb48eae0faacc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 6 Apr 2021 13:36:16 +0200 Subject: [PATCH] fix lint --- cli/util/api.go | 2 +- cmd/lotus-chainwatch/run.go | 3 ++- cmd/lotus-chainwatch/util/api.go | 2 +- cmd/lotus-health/main.go | 3 ++- cmd/lotus-storage-miner/run.go | 3 ++- cmd/tvx/extract_message.go | 3 ++- cmd/tvx/state.go | 3 ++- cmd/tvx/stores.go | 3 ++- conformance/rand_record.go | 2 +- storage/miner.go | 2 +- tools/stats/metrics.go | 2 +- tools/stats/rpc.go | 2 +- 12 files changed, 18 insertions(+), 12 deletions(-) diff --git a/cli/util/api.go b/cli/util/api.go index 38ff5efed..16913751d 100644 --- a/cli/util/api.go +++ b/cli/util/api.go @@ -3,7 +3,6 @@ package cliutil import ( "context" "fmt" - "github.com/filecoin-project/lotus/api/v1api" "net/http" "net/url" "os" @@ -20,6 +19,7 @@ import ( "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/api/client" "github.com/filecoin-project/lotus/api/v0api" + "github.com/filecoin-project/lotus/api/v1api" "github.com/filecoin-project/lotus/node/repo" ) diff --git a/cmd/lotus-chainwatch/run.go b/cmd/lotus-chainwatch/run.go index aa417a863..6e47a100d 100644 --- a/cmd/lotus-chainwatch/run.go +++ b/cmd/lotus-chainwatch/run.go @@ -3,12 +3,13 @@ package main import ( "database/sql" "fmt" - "github.com/filecoin-project/lotus/api/v0api" "net/http" _ "net/http/pprof" "os" "strings" + "github.com/filecoin-project/lotus/api/v0api" + _ "github.com/lib/pq" "github.com/filecoin-project/go-jsonrpc" diff --git a/cmd/lotus-chainwatch/util/api.go b/cmd/lotus-chainwatch/util/api.go index 5b6b7529d..f8f22cbbf 100644 --- a/cmd/lotus-chainwatch/util/api.go +++ b/cmd/lotus-chainwatch/util/api.go @@ -2,11 +2,11 @@ package util import ( "context" - "github.com/filecoin-project/lotus/api/v0api" "net/http" "github.com/filecoin-project/go-jsonrpc" "github.com/filecoin-project/lotus/api/client" + "github.com/filecoin-project/lotus/api/v0api" ma "github.com/multiformats/go-multiaddr" manet "github.com/multiformats/go-multiaddr/net" ) diff --git a/cmd/lotus-health/main.go b/cmd/lotus-health/main.go index b4146f71a..a226e743d 100644 --- a/cmd/lotus-health/main.go +++ b/cmd/lotus-health/main.go @@ -3,12 +3,13 @@ package main import ( "context" "errors" - "github.com/filecoin-project/lotus/api/v0api" "os" "os/signal" "syscall" "time" + "github.com/filecoin-project/lotus/api/v0api" + cid "github.com/ipfs/go-cid" logging "github.com/ipfs/go-log" "github.com/urfave/cli/v2" diff --git a/cmd/lotus-storage-miner/run.go b/cmd/lotus-storage-miner/run.go index a66c0b61d..f7a4efd1a 100644 --- a/cmd/lotus-storage-miner/run.go +++ b/cmd/lotus-storage-miner/run.go @@ -2,7 +2,6 @@ package main import ( "context" - "github.com/filecoin-project/lotus/api/v1api" "net" "net/http" _ "net/http/pprof" @@ -10,6 +9,8 @@ import ( "os/signal" "syscall" + "github.com/filecoin-project/lotus/api/v1api" + "github.com/filecoin-project/lotus/api/v0api" mux "github.com/gorilla/mux" diff --git a/cmd/tvx/extract_message.go b/cmd/tvx/extract_message.go index f29b39bb1..8e993cbd3 100644 --- a/cmd/tvx/extract_message.go +++ b/cmd/tvx/extract_message.go @@ -5,10 +5,11 @@ import ( "compress/gzip" "context" "fmt" - "github.com/filecoin-project/lotus/api/v0api" "io" "log" + "github.com/filecoin-project/lotus/api/v0api" + "github.com/fatih/color" "github.com/filecoin-project/go-address" diff --git a/cmd/tvx/state.go b/cmd/tvx/state.go index a60ebac41..f2d25300a 100644 --- a/cmd/tvx/state.go +++ b/cmd/tvx/state.go @@ -3,10 +3,11 @@ package main import ( "context" "fmt" - "github.com/filecoin-project/lotus/api/v0api" "io" "log" + "github.com/filecoin-project/lotus/api/v0api" + "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" "github.com/ipfs/go-cid" diff --git a/cmd/tvx/stores.go b/cmd/tvx/stores.go index 0f90033ac..040005641 100644 --- a/cmd/tvx/stores.go +++ b/cmd/tvx/stores.go @@ -2,10 +2,11 @@ package main import ( "context" - "github.com/filecoin-project/lotus/api/v0api" "log" "sync" + "github.com/filecoin-project/lotus/api/v0api" + "github.com/fatih/color" dssync "github.com/ipfs/go-datastore/sync" diff --git a/conformance/rand_record.go b/conformance/rand_record.go index 92a0b1a53..165e86e85 100644 --- a/conformance/rand_record.go +++ b/conformance/rand_record.go @@ -3,7 +3,6 @@ package conformance import ( "context" "fmt" - "github.com/filecoin-project/lotus/api/v0api" "sync" "github.com/filecoin-project/go-state-types/abi" @@ -11,6 +10,7 @@ import ( "github.com/filecoin-project/test-vectors/schema" + "github.com/filecoin-project/lotus/api/v0api" "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/chain/vm" ) diff --git a/storage/miner.go b/storage/miner.go index ae0ac0bef..9a24cbe9d 100644 --- a/storage/miner.go +++ b/storage/miner.go @@ -3,7 +3,6 @@ package storage import ( "context" "errors" - "github.com/filecoin-project/lotus/api/v1api" "time" "github.com/filecoin-project/go-state-types/network" @@ -26,6 +25,7 @@ import ( "github.com/filecoin-project/specs-storage/storage" "github.com/filecoin-project/lotus/api" + "github.com/filecoin-project/lotus/api/v1api" "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/actors/builtin" "github.com/filecoin-project/lotus/chain/actors/builtin/miner" diff --git a/tools/stats/metrics.go b/tools/stats/metrics.go index 20377d496..7764c4bca 100644 --- a/tools/stats/metrics.go +++ b/tools/stats/metrics.go @@ -5,13 +5,13 @@ import ( "context" "encoding/json" "fmt" - "github.com/filecoin-project/lotus/api/v0api" "math" "math/big" "strings" "time" "github.com/filecoin-project/go-address" + "github.com/filecoin-project/lotus/api/v0api" "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/actors/builtin/power" "github.com/filecoin-project/lotus/chain/actors/builtin/reward" diff --git a/tools/stats/rpc.go b/tools/stats/rpc.go index fdd22ca99..0aa3d141e 100644 --- a/tools/stats/rpc.go +++ b/tools/stats/rpc.go @@ -2,7 +2,6 @@ package stats import ( "context" - "github.com/filecoin-project/lotus/api/v0api" "net/http" "time" @@ -14,6 +13,7 @@ import ( "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/api/client" + "github.com/filecoin-project/lotus/api/v0api" "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/store" "github.com/filecoin-project/lotus/chain/types"