From df5ac9dc2b86bf94cdbdc4ed653809baff302970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 20 Feb 2024 17:06:54 +0100 Subject: [PATCH] fix imports --- blockstore/cached.go | 1 + cmd/lotus-provider/deps/deps.go | 11 ++++++----- cmd/lotus-shed/lpdeal.go | 2 +- provider/lpmarket/fakelm/lmimpl.go | 4 ++-- provider/lpweb/hapi/simpleinfo_pipeline_porep.go | 4 ++-- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/blockstore/cached.go b/blockstore/cached.go index f71799225..113ec5990 100644 --- a/blockstore/cached.go +++ b/blockstore/cached.go @@ -2,6 +2,7 @@ package blockstore import ( "context" + blocks "github.com/ipfs/go-block-format" "github.com/ipfs/go-cid" ) diff --git a/cmd/lotus-provider/deps/deps.go b/cmd/lotus-provider/deps/deps.go index 43f95625e..31e3058c1 100644 --- a/cmd/lotus-provider/deps/deps.go +++ b/cmd/lotus-provider/deps/deps.go @@ -7,6 +7,12 @@ import ( "encoding/base64" "errors" "fmt" + "net" + "net/http" + "os" + "regexp" + "strings" + "github.com/BurntSushi/toml" "github.com/gbrlsnchs/jwt/v3" ds "github.com/ipfs/go-datastore" @@ -14,11 +20,6 @@ import ( logging "github.com/ipfs/go-log/v2" "github.com/urfave/cli/v2" "golang.org/x/xerrors" - "net" - "net/http" - "os" - "regexp" - "strings" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-jsonrpc/auth" diff --git a/cmd/lotus-shed/lpdeal.go b/cmd/lotus-shed/lpdeal.go index 5934436f4..01f886015 100644 --- a/cmd/lotus-shed/lpdeal.go +++ b/cmd/lotus-shed/lpdeal.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "fmt" - "github.com/filecoin-project/lotus/metrics/proxy" "io" "net" "net/http" @@ -38,6 +37,7 @@ import ( "github.com/filecoin-project/lotus/cmd/lotus-provider/deps" "github.com/filecoin-project/lotus/lib/must" "github.com/filecoin-project/lotus/lib/nullreader" + "github.com/filecoin-project/lotus/metrics/proxy" "github.com/filecoin-project/lotus/node" "github.com/filecoin-project/lotus/provider/lpmarket" "github.com/filecoin-project/lotus/provider/lpmarket/fakelm" diff --git a/provider/lpmarket/fakelm/lmimpl.go b/provider/lpmarket/fakelm/lmimpl.go index 377a6225f..fff0a3685 100644 --- a/provider/lpmarket/fakelm/lmimpl.go +++ b/provider/lpmarket/fakelm/lmimpl.go @@ -3,8 +3,6 @@ package fakelm import ( "context" "encoding/base64" - "github.com/filecoin-project/go-state-types/network" - "github.com/filecoin-project/lotus/chain/actors/builtin/miner" "net/http" "net/url" @@ -17,8 +15,10 @@ import ( "github.com/filecoin-project/go-jsonrpc/auth" "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/go-state-types/big" + "github.com/filecoin-project/go-state-types/network" "github.com/filecoin-project/lotus/api" + "github.com/filecoin-project/lotus/chain/actors/builtin/miner" "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/lib/harmony/harmonydb" "github.com/filecoin-project/lotus/node/config" diff --git a/provider/lpweb/hapi/simpleinfo_pipeline_porep.go b/provider/lpweb/hapi/simpleinfo_pipeline_porep.go index 8bd6cf4b2..236f87cc2 100644 --- a/provider/lpweb/hapi/simpleinfo_pipeline_porep.go +++ b/provider/lpweb/hapi/simpleinfo_pipeline_porep.go @@ -1,11 +1,11 @@ package hapi import ( - lru "github.com/hashicorp/golang-lru/v2" - blocks "github.com/ipfs/go-block-format" "net/http" "time" + lru "github.com/hashicorp/golang-lru/v2" + blocks "github.com/ipfs/go-block-format" "golang.org/x/xerrors" "github.com/filecoin-project/go-address"