Skip to content

Commit aa1af66

Browse files
authored
chore: enable goimports (#3096)
fix goimports
1 parent ce18484 commit aa1af66

Some content is hidden

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

58 files changed

+129
-114
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ linters:
3838
- examples$
3939
formatters:
4040
enable:
41+
- gci
4142
- gofmt
4243
settings:
4344
gci:

apps/evm/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import (
66

77
"github.com/spf13/cobra"
88

9+
"github.com/evstack/ev-node/apps/evm/cmd"
910
rollcmd "github.com/evstack/ev-node/pkg/cmd"
1011
"github.com/evstack/ev-node/pkg/config"
11-
12-
"github.com/evstack/ev-node/apps/evm/cmd"
1312
)
1413

1514
func main() {

apps/evm/server/force_inclusion_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ import (
99
"testing"
1010
"time"
1111

12+
"github.com/rs/zerolog"
13+
"gotest.tools/v3/assert"
14+
1215
"github.com/evstack/ev-node/pkg/config"
1316
da "github.com/evstack/ev-node/pkg/da/types"
1417
"github.com/evstack/ev-node/pkg/genesis"
15-
"github.com/rs/zerolog"
16-
"gotest.tools/v3/assert"
1718
)
1819

1920
// mockDA implements block/internal/da.Client for testing

apps/grpc/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import (
66

77
"github.com/spf13/cobra"
88

9+
"github.com/evstack/ev-node/apps/grpc/cmd"
910
evcmd "github.com/evstack/ev-node/pkg/cmd"
1011
"github.com/evstack/ev-node/pkg/config"
11-
12-
"github.com/evstack/ev-node/apps/grpc/cmd"
1312
)
1413

1514
func main() {

apps/testapp/cmd/rollback.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"context"
55
"fmt"
66

7+
"github.com/spf13/cobra"
8+
79
kvexecutor "github.com/evstack/ev-node/apps/testapp/kv"
810
rollcmd "github.com/evstack/ev-node/pkg/cmd"
911
"github.com/evstack/ev-node/pkg/store"
10-
11-
"github.com/spf13/cobra"
1212
)
1313

1414
// NewRollbackCmd creates a command to rollback ev-node state by one height.

apps/testapp/kv/kvexecutor.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import (
88
"strings"
99
"time"
1010

11-
"github.com/evstack/ev-node/core/execution"
12-
"github.com/evstack/ev-node/pkg/store"
1311
ds "github.com/ipfs/go-datastore"
1412
"github.com/ipfs/go-datastore/query"
13+
14+
"github.com/evstack/ev-node/core/execution"
15+
"github.com/evstack/ev-node/pkg/store"
1516
)
1617

1718
var (

block/internal/cache/generic_cache.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"strings"
88
"sync"
9-
109
"sync/atomic"
1110

1211
lru "github.com/hashicorp/golang-lru/v2"

block/internal/common/expected_interfaces.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package common
33
import (
44
"context"
55

6-
"github.com/evstack/ev-node/types"
6+
"github.com/celestiaorg/go-header"
77
pubsub "github.com/libp2p/go-libp2p-pubsub"
88

9-
"github.com/celestiaorg/go-header"
9+
"github.com/evstack/ev-node/types"
1010
)
1111

1212
type (

block/internal/da/async_block_retriever_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ import (
1313

1414
"github.com/evstack/ev-node/pkg/config"
1515
datypes "github.com/evstack/ev-node/pkg/da/types"
16-
pb "github.com/evstack/ev-node/types/pb/evnode/v1"
17-
1816
mocks "github.com/evstack/ev-node/test/mocks"
17+
pb "github.com/evstack/ev-node/types/pb/evnode/v1"
1918
)
2019

2120
func TestAsyncBlockRetriever_GetCachedBlock_NoNamespace(t *testing.T) {

block/internal/da/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"time"
1010

1111
"github.com/celestiaorg/go-square/v3/share"
12-
"github.com/evstack/ev-node/block/internal/common"
13-
blobrpc "github.com/evstack/ev-node/pkg/da/jsonrpc"
1412
"github.com/rs/zerolog"
1513

14+
"github.com/evstack/ev-node/block/internal/common"
15+
blobrpc "github.com/evstack/ev-node/pkg/da/jsonrpc"
1616
datypes "github.com/evstack/ev-node/pkg/da/types"
1717
)
1818

0 commit comments

Comments
 (0)