Skip to content

Commit

Permalink
style(lint): fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward committed Jun 30, 2022
1 parent 6d50e9a commit 2326c15
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
5 changes: 3 additions & 2 deletions channels/internal/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
basicnode "github.com/ipld/go-ipld-prime/node/basic"
peer "github.com/libp2p/go-libp2p-core/peer"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/channels/internal"
versioning "github.com/filecoin-project/go-ds-versioning/pkg"
"github.com/filecoin-project/go-ds-versioning/pkg/versioned"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/channels/internal"
)

//go:generate cbor-gen-for --map-encoding ChannelStateV2
Expand Down
3 changes: 2 additions & 1 deletion impl/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"errors"
"fmt"

"golang.org/x/xerrors"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/channels"
"github.com/filecoin-project/go-data-transfer/v2/message"
"golang.org/x/xerrors"
)

// OnChannelOpened is called when we send a request for data to the other
Expand Down
7 changes: 4 additions & 3 deletions transport/graphsync/initiating_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import (
"testing"
"time"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/extension"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/testharness"
"github.com/ipfs/go-graphsync"
"github.com/ipld/go-ipld-prime/datamodel"
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
basicnode "github.com/ipld/go-ipld-prime/node/basic"
"github.com/stretchr/testify/require"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/extension"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/testharness"
)

func TestInitiatingPullRequestSuccessFlow(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions transport/graphsync/responding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import (
"testing"
"time"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/extension"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/testharness"
"github.com/ipfs/go-graphsync"
"github.com/ipld/go-ipld-prime/datamodel"
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
basicnode "github.com/ipld/go-ipld-prime/node/basic"
"github.com/stretchr/testify/require"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/extension"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/testharness"
)

func TestRespondingPullSuccessFlow(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion transport/graphsync/testharness/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"context"
"testing"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/stretchr/testify/require"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
)

type ReceivedTransportEvent struct {
Expand Down
13 changes: 7 additions & 6 deletions transport/graphsync/testharness/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ import (
"math/rand"
"testing"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/message"
"github.com/filecoin-project/go-data-transfer/v2/message/types"
"github.com/filecoin-project/go-data-transfer/v2/testutil"
dtgs "github.com/filecoin-project/go-data-transfer/v2/transport/graphsync"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/extension"
"github.com/ipfs/go-graphsync"
"github.com/ipld/go-ipld-prime"
"github.com/ipld/go-ipld-prime/datamodel"
"github.com/ipld/go-ipld-prime/node/basicnode"
"github.com/ipld/go-ipld-prime/traversal/selector/builder"
"github.com/stretchr/testify/require"

datatransfer "github.com/filecoin-project/go-data-transfer/v2"
"github.com/filecoin-project/go-data-transfer/v2/message"
"github.com/filecoin-project/go-data-transfer/v2/message/types"
"github.com/filecoin-project/go-data-transfer/v2/testutil"
dtgs "github.com/filecoin-project/go-data-transfer/v2/transport/graphsync"
"github.com/filecoin-project/go-data-transfer/v2/transport/graphsync/extension"
)

type harnessConfig struct {
Expand Down

0 comments on commit 2326c15

Please sign in to comment.