Skip to content

Commit 9b4a3ba

Browse files
snadrusmagik6k
authored andcommitted
fix circleci and fiximports
1 parent c1edae6 commit 9b4a3ba

File tree

843 files changed

+1448
-398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

843 files changed

+1448
-398
lines changed

api/api_common.go

+3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import (
44
"context"
55
"fmt"
66
"time"
7+
78
"github.com/google/uuid"
9+
810
"github.com/filecoin-project/go-jsonrpc/auth"
11+
912
apitypes "github.com/filecoin-project/lotus/api/types"
1013
"github.com/filecoin-project/lotus/journal/alerting"
1114
)

api/api_errors.go

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package api
33
import (
44
"errors"
55
"reflect"
6+
67
"github.com/filecoin-project/go-jsonrpc"
78
)
89

api/api_full.go

+3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ import (
55
"encoding/json"
66
"fmt"
77
"time"
8+
89
"github.com/google/uuid"
910
blocks "github.com/ipfs/go-block-format"
1011
"github.com/ipfs/go-cid"
1112
"github.com/libp2p/go-libp2p/core/peer"
13+
1214
"github.com/filecoin-project/go-address"
1315
"github.com/filecoin-project/go-bitfield"
1416
datatransfer "github.com/filecoin-project/go-data-transfer/v2"
@@ -23,6 +25,7 @@ import (
2325
"github.com/filecoin-project/go-state-types/crypto"
2426
"github.com/filecoin-project/go-state-types/dline"
2527
abinetwork "github.com/filecoin-project/go-state-types/network"
28+
2629
apitypes "github.com/filecoin-project/lotus/api/types"
2730
"github.com/filecoin-project/lotus/chain/actors/builtin"
2831
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"

api/api_gateway.go

+3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ package api
22

33
import (
44
"context"
5+
56
blocks "github.com/ipfs/go-block-format"
67
"github.com/ipfs/go-cid"
8+
79
"github.com/filecoin-project/go-address"
810
"github.com/filecoin-project/go-jsonrpc"
911
"github.com/filecoin-project/go-state-types/abi"
1012
verifregtypes "github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
1113
"github.com/filecoin-project/go-state-types/dline"
14+
1215
apitypes "github.com/filecoin-project/lotus/api/types"
1316
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"
1417
"github.com/filecoin-project/lotus/chain/types"

api/api_net.go

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package api
33
import (
44
"context"
55
"time"
6+
67
"github.com/libp2p/go-libp2p/core/metrics"
78
"github.com/libp2p/go-libp2p/core/network"
89
"github.com/libp2p/go-libp2p/core/peer"

api/api_storage.go

+3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import (
44
"bytes"
55
"context"
66
"time"
7+
78
"github.com/google/uuid"
89
"github.com/ipfs/go-cid"
910
"github.com/libp2p/go-libp2p/core/peer"
11+
1012
"github.com/filecoin-project/go-address"
1113
"github.com/filecoin-project/go-bitfield"
1214
datatransfer "github.com/filecoin-project/go-data-transfer/v2"
@@ -18,6 +20,7 @@ import (
1820
"github.com/filecoin-project/go-state-types/big"
1921
"github.com/filecoin-project/go-state-types/builtin/v9/market"
2022
abinetwork "github.com/filecoin-project/go-state-types/network"
23+
2124
builtinactors "github.com/filecoin-project/lotus/chain/actors/builtin"
2225
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"
2326
"github.com/filecoin-project/lotus/chain/types"

api/api_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import (
1010
"runtime"
1111
"strings"
1212
"testing"
13+
1314
"github.com/stretchr/testify/require"
1415
"golang.org/x/xerrors"
16+
1517
"github.com/filecoin-project/go-jsonrpc"
1618
)
1719

api/api_wallet.go

+2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ package api
22

33
import (
44
"context"
5+
56
"github.com/filecoin-project/go-address"
67
"github.com/filecoin-project/go-state-types/crypto"
8+
79
"github.com/filecoin-project/lotus/chain/types"
810
)
911

api/api_worker.go

+3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ package api
22

33
import (
44
"context"
5+
56
"github.com/google/uuid"
67
"github.com/ipfs/go-cid"
8+
79
"github.com/filecoin-project/go-state-types/abi"
810
"github.com/filecoin-project/go-state-types/proof"
11+
912
"github.com/filecoin-project/lotus/storage/sealer/sealtasks"
1013
"github.com/filecoin-project/lotus/storage/sealer/storiface"
1114
)

api/cbor_gen.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/client.go

+2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import (
66
"net/url"
77
"path"
88
"time"
9+
910
"github.com/filecoin-project/go-jsonrpc"
11+
1012
"github.com/filecoin-project/lotus/api"
1113
"github.com/filecoin-project/lotus/api/v0api"
1214
"github.com/filecoin-project/lotus/api/v1api"

api/docgen-openrpc/cmd/docgen_openrpc.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"io"
77
"log"
88
"os"
9+
910
"github.com/filecoin-project/lotus/api/docgen"
1011
docgen_openrpc "github.com/filecoin-project/lotus/api/docgen-openrpc"
1112
)

api/docgen-openrpc/openrpc.go

+2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ import (
55
"go/ast"
66
"net"
77
"reflect"
8+
89
"github.com/alecthomas/jsonschema"
910
go_openrpc_reflect "github.com/etclabscore/go-openrpc-reflect"
1011
"github.com/ipfs/go-cid"
1112
meta_schema "github.com/open-rpc/meta-schema"
13+
1214
"github.com/filecoin-project/lotus/api/docgen"
1315
"github.com/filecoin-project/lotus/build"
1416
)

api/docgen/cmd/docgen.go

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"reflect"
88
"sort"
99
"strings"
10+
1011
"github.com/filecoin-project/lotus/api/docgen"
1112
)
1213

api/docgen/docgen.go

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"strings"
1313
"time"
1414
"unicode"
15+
1516
"github.com/google/uuid"
1617
blocks "github.com/ipfs/go-block-format"
1718
"github.com/ipfs/go-cid"
@@ -23,6 +24,7 @@ import (
2324
"github.com/libp2p/go-libp2p/core/peer"
2425
"github.com/libp2p/go-libp2p/core/protocol"
2526
"github.com/multiformats/go-multiaddr"
27+
2628
"github.com/filecoin-project/go-address"
2729
"github.com/filecoin-project/go-bitfield"
2830
datatransfer "github.com/filecoin-project/go-data-transfer/v2"
@@ -33,6 +35,7 @@ import (
3335
"github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
3436
"github.com/filecoin-project/go-state-types/crypto"
3537
"github.com/filecoin-project/go-state-types/exitcode"
38+
3639
"github.com/filecoin-project/lotus/api"
3740
apitypes "github.com/filecoin-project/lotus/api/types"
3841
"github.com/filecoin-project/lotus/api/v0api"

api/mocks/mock_full.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/proxy_gen.go

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/proxy_util_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package api
33

44
import (
55
"testing"
6+
67
"github.com/stretchr/testify/require"
78
)
89

api/types.go

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"encoding/json"
55
"fmt"
66
"time"
7+
78
"github.com/google/uuid"
89
"github.com/ipfs/go-cid"
910
"github.com/ipfs/go-graphsync"
@@ -13,10 +14,12 @@ import (
1314
"github.com/libp2p/go-libp2p/core/network"
1415
"github.com/libp2p/go-libp2p/core/peer"
1516
ma "github.com/multiformats/go-multiaddr"
17+
1618
"github.com/filecoin-project/go-address"
1719
datatransfer "github.com/filecoin-project/go-data-transfer/v2"
1820
"github.com/filecoin-project/go-fil-markets/retrievalmarket"
1921
"github.com/filecoin-project/go-state-types/abi"
22+
2023
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"
2124
"github.com/filecoin-project/lotus/chain/types"
2225
"github.com/filecoin-project/lotus/node/modules/dtypes"

api/utils.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package api
22

33
import (
44
"context"
5+
56
"github.com/filecoin-project/go-address"
67
"github.com/filecoin-project/go-state-types/crypto"
78
)

api/v0api/full.go

+3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ package v0api
22

33
import (
44
"context"
5+
56
blocks "github.com/ipfs/go-block-format"
67
"github.com/ipfs/go-cid"
78
textselector "github.com/ipld/go-ipld-selector-text-lite"
89
"github.com/libp2p/go-libp2p/core/peer"
10+
911
"github.com/filecoin-project/go-address"
1012
"github.com/filecoin-project/go-bitfield"
1113
datatransfer "github.com/filecoin-project/go-data-transfer/v2"
@@ -17,6 +19,7 @@ import (
1719
"github.com/filecoin-project/go-state-types/crypto"
1820
"github.com/filecoin-project/go-state-types/dline"
1921
abinetwork "github.com/filecoin-project/go-state-types/network"
22+
2023
"github.com/filecoin-project/lotus/api"
2124
apitypes "github.com/filecoin-project/lotus/api/types"
2225
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"

api/v0api/gateway.go

+3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ package v0api
22

33
import (
44
"context"
5+
56
blocks "github.com/ipfs/go-block-format"
67
"github.com/ipfs/go-cid"
8+
79
"github.com/filecoin-project/go-address"
810
"github.com/filecoin-project/go-state-types/abi"
911
verifregtypes "github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
1012
"github.com/filecoin-project/go-state-types/dline"
1113
abinetwork "github.com/filecoin-project/go-state-types/network"
14+
1215
"github.com/filecoin-project/lotus/api"
1316
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"
1417
"github.com/filecoin-project/lotus/chain/types"

api/v0api/permissioned.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package v0api
22

33
import (
44
"github.com/filecoin-project/go-jsonrpc/auth"
5+
56
"github.com/filecoin-project/lotus/api"
67
)
78

api/v0api/proxy_gen.go

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v0api/v0mocks/mock_full.go

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v0api/v1_wrapper.go

+3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ package v0api
22

33
import (
44
"context"
5+
56
"github.com/ipfs/go-cid"
67
"github.com/libp2p/go-libp2p/core/peer"
78
"golang.org/x/xerrors"
9+
810
"github.com/filecoin-project/go-address"
911
"github.com/filecoin-project/go-fil-markets/retrievalmarket"
1012
"github.com/filecoin-project/go-fil-markets/storagemarket"
1113
"github.com/filecoin-project/go-state-types/abi"
1214
"github.com/filecoin-project/go-state-types/big"
1315
"github.com/filecoin-project/go-state-types/crypto"
16+
1417
"github.com/filecoin-project/lotus/api"
1518
"github.com/filecoin-project/lotus/api/v1api"
1619
"github.com/filecoin-project/lotus/chain/actors/builtin/miner"

blockstore/splitstore/splitstore.go

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"golang.org/x/xerrors"
1919

2020
"github.com/filecoin-project/go-state-types/abi"
21+
2122
bstore "github.com/filecoin-project/lotus/blockstore"
2223
"github.com/filecoin-project/lotus/build"
2324
"github.com/filecoin-project/lotus/chain/stmgr"

blockstore/splitstore/splitstore_compact.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"golang.org/x/xerrors"
2020

2121
"github.com/filecoin-project/go-state-types/abi"
22+
2223
"github.com/filecoin-project/lotus/build"
2324
"github.com/filecoin-project/lotus/chain/types"
2425
"github.com/filecoin-project/lotus/metrics"

blockstore/splitstore/splitstore_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
mh "github.com/multiformats/go-multihash"
2121

2222
"github.com/filecoin-project/go-state-types/abi"
23+
2324
"github.com/filecoin-project/lotus/blockstore"
2425
"github.com/filecoin-project/lotus/chain/stmgr"
2526
"github.com/filecoin-project/lotus/chain/types"

0 commit comments

Comments
 (0)