Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
walldiss committed Apr 1, 2024
1 parent 948013c commit 6f5db44
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 22 deletions.
2 changes: 1 addition & 1 deletion nodebuilder/pruner/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package pruner

import (
"context"
"github.com/celestiaorg/celestia-node/share/store"

"go.uber.org/fx"

Expand All @@ -11,6 +10,7 @@ import (
"github.com/celestiaorg/celestia-node/pruner/archival"
"github.com/celestiaorg/celestia-node/pruner/full"
"github.com/celestiaorg/celestia-node/pruner/light"
"github.com/celestiaorg/celestia-node/share/store"
)

func ConstructModule(tp node.Type, cfg *Config) fx.Option {
Expand Down
2 changes: 1 addition & 1 deletion nodebuilder/share/constructors.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package share

import (
shwap_getter "github.com/celestiaorg/celestia-node/share/shwap/getter"
"github.com/libp2p/go-libp2p/core/host"
"github.com/libp2p/go-libp2p/core/routing"
routingdisc "github.com/libp2p/go-libp2p/p2p/discovery/routing"
Expand All @@ -10,6 +9,7 @@ import (
"github.com/celestiaorg/celestia-node/share/getters"
disc "github.com/celestiaorg/celestia-node/share/p2p/discovery"
"github.com/celestiaorg/celestia-node/share/p2p/peers"
shwap_getter "github.com/celestiaorg/celestia-node/share/shwap/getter"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion nodebuilder/share/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package share

import (
"context"
shwap_getter "github.com/celestiaorg/celestia-node/share/shwap/getter"

"github.com/libp2p/go-libp2p/core/host"
"github.com/libp2p/go-libp2p/p2p/net/conngater"
Expand All @@ -23,6 +22,7 @@ import (
"github.com/celestiaorg/celestia-node/share/p2p/shrexeds"
"github.com/celestiaorg/celestia-node/share/p2p/shrexnd"
"github.com/celestiaorg/celestia-node/share/p2p/shrexsub"
shwap_getter "github.com/celestiaorg/celestia-node/share/shwap/getter"
"github.com/celestiaorg/celestia-node/share/store"
)

Expand Down
2 changes: 1 addition & 1 deletion pruner/full/pruner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package full
import (
"context"
"errors"
"github.com/celestiaorg/celestia-node/share/store"

"github.com/filecoin-project/dagstore"
logging "github.com/ipfs/go-log/v2"

"github.com/celestiaorg/celestia-node/header"
"github.com/celestiaorg/celestia-node/share"
"github.com/celestiaorg/celestia-node/share/store"
)

var log = logging.Logger("pruner/full")
Expand Down
4 changes: 1 addition & 3 deletions share/shwap/data_hasher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ func TestDataHasher(t *testing.T) {
require.NoError(t, err)
data := datas[0]

dataVerifiers.Add(data.DataID, func(data Data) error {
return data.Verify(root)
})
rootVerifiers.Add(data.DataID, root)

dat, err := data.MarshalBinary()
require.NoError(t, err)
Expand Down
1 change: 1 addition & 0 deletions share/shwap/eds_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package shwap
import (
"encoding/binary"
"fmt"

"github.com/celestiaorg/celestia-node/share"
)

Expand Down
8 changes: 5 additions & 3 deletions share/shwap/getter/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ package shwap_getter
import (
"context"
"fmt"
"github.com/celestiaorg/celestia-app/pkg/wrapper"
"github.com/celestiaorg/celestia-node/share/shwap"
"github.com/celestiaorg/rsmt2d"

"github.com/ipfs/boxo/blockstore"
"github.com/ipfs/boxo/exchange"
block "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"

"github.com/celestiaorg/celestia-app/pkg/wrapper"
"github.com/celestiaorg/rsmt2d"

"github.com/celestiaorg/celestia-node/header"
"github.com/celestiaorg/celestia-node/share"
"github.com/celestiaorg/celestia-node/share/shwap"
)

type Getter struct {
Expand Down
4 changes: 3 additions & 1 deletion share/shwap/getter/reconstruction.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ package shwap_getter

import (
"context"

"github.com/celestiaorg/rsmt2d"

"github.com/celestiaorg/celestia-node/header"
"github.com/celestiaorg/celestia-node/share"
"github.com/celestiaorg/rsmt2d"
)

type ReconstructionGetter struct {
Expand Down
4 changes: 2 additions & 2 deletions share/shwap/getter/retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package shwap_getter
import (
"context"
"errors"
"github.com/celestiaorg/celestia-node/header"
"github.com/celestiaorg/celestia-node/share/shwap"
"sync"
"sync/atomic"
"time"
Expand All @@ -19,8 +17,10 @@ import (
"github.com/celestiaorg/celestia-app/pkg/wrapper"
"github.com/celestiaorg/rsmt2d"

"github.com/celestiaorg/celestia-node/header"
"github.com/celestiaorg/celestia-node/share"
"github.com/celestiaorg/celestia-node/share/eds/byzantine"
"github.com/celestiaorg/celestia-node/share/shwap"
)

// TODO(@walldiss):
Expand Down
4 changes: 2 additions & 2 deletions share/shwap/getter/retriever_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ package shwap_getter

import (
"context"
"github.com/celestiaorg/celestia-node/share/eds/byzantine"
"go.uber.org/atomic"
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/atomic"

"github.com/celestiaorg/celestia-node/header"
"github.com/celestiaorg/celestia-node/share"
"github.com/celestiaorg/celestia-node/share/eds/byzantine"
"github.com/celestiaorg/celestia-node/share/testing/edstest"
)

Expand Down
1 change: 1 addition & 0 deletions share/store/file/axis_half.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package file

import (
"fmt"

"github.com/celestiaorg/celestia-node/share"
)

Expand Down
6 changes: 4 additions & 2 deletions share/store/file/axis_half_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package file

import (
"github.com/celestiaorg/celestia-node/share/testing/sharetest"
"github.com/stretchr/testify/require"
"testing"

"github.com/stretchr/testify/require"

"github.com/celestiaorg/celestia-node/share/testing/sharetest"
)

func TestExtendAxisHalf(t *testing.T) {
Expand Down
6 changes: 4 additions & 2 deletions share/store/file/q1q4_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ package file
import (
"context"
"fmt"
"github.com/celestiaorg/celestia-node/share"
"github.com/celestiaorg/rsmt2d"
"io"

"github.com/celestiaorg/rsmt2d"

"github.com/celestiaorg/celestia-node/share"
)

var _ EdsFile = (*Q1Q4File)(nil)
Expand Down
6 changes: 4 additions & 2 deletions share/store/file/q1q4_file_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package file

import (
"github.com/celestiaorg/rsmt2d"
"github.com/stretchr/testify/require"
"testing"

"github.com/stretchr/testify/require"

"github.com/celestiaorg/rsmt2d"
)

func TestQ1Q4File(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion share/store/file/square.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"bytes"
"context"
"fmt"
"golang.org/x/sync/errgroup"
"io"

"golang.org/x/sync/errgroup"

"github.com/celestiaorg/celestia-app/pkg/wrapper"
"github.com/celestiaorg/rsmt2d"

Expand Down

0 comments on commit 6f5db44

Please sign in to comment.