Commit 5cfe7b83 authored by hannahhoward's avatar hannahhoward

style(imports): fix imports

parent 09368acf
......@@ -3,11 +3,11 @@ package testnet
import (
"context"
gsnet "github.com/ipfs/go-graphsync/network"
"github.com/libp2p/go-libp2p-core/peer"
tnet "github.com/libp2p/go-libp2p-testing/net"
mockpeernet "github.com/libp2p/go-libp2p/p2p/net/mock"
gsnet "github.com/ipfs/go-graphsync/network"
)
type peernet struct {
......
......@@ -36,8 +36,8 @@ func Traverse(ctx context.Context, loader ipld.Loader, chooser traversal.LinkTar
node := nb.Build()
return traversal.Progress{
Cfg: &traversal.Config{
Ctx: ctx,
LinkLoader: loader,
Ctx: ctx,
LinkLoader: loader,
LinkTargetNodePrototypeChooser: chooser,
},
}.WalkAdv(node, s, fn)
......
......@@ -167,8 +167,8 @@ func (t *traverser) start() {
}
err = traversal.Progress{
Cfg: &traversal.Config{
Ctx: t.ctx,
LinkLoader: loader,
Ctx: t.ctx,
LinkLoader: loader,
LinkTargetNodePrototypeChooser: t.chooser,
},
}.WalkAdv(nd, sel, t.visitor)
......
......@@ -7,11 +7,11 @@ import (
"github.com/ipld/go-ipld-prime/codec/dagcbor"
"github.com/ipld/go-ipld-prime/fluent"
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
basicnode "github.com/ipld/go-ipld-prime/node/basic"
"github.com/stretchr/testify/require"
"github.com/ipfs/go-graphsync/testutil"
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
basicnode "github.com/ipld/go-ipld-prime/node/basic"
)
func TestDecodeEncodeMetadata(t *testing.T) {
......
......@@ -36,15 +36,15 @@ type ExecutionEnv struct {
// RequestExecution are parameters for a single request execution
type RequestExecution struct {
Ctx context.Context
P peer.ID
NetworkError chan error
Request gsmsg.GraphSyncRequest
LastResponse *atomic.Value
DoNotSendCids *cid.Set
Ctx context.Context
P peer.ID
NetworkError chan error
Request gsmsg.GraphSyncRequest
LastResponse *atomic.Value
DoNotSendCids *cid.Set
NodePrototypeChooser traversal.LinkTargetNodePrototypeChooser
ResumeMessages chan []graphsync.ExtensionData
PauseMessages chan struct{}
ResumeMessages chan []graphsync.ExtensionData
PauseMessages chan struct{}
}
// Start begins execution of a request in a go routine
......
......@@ -430,13 +430,13 @@ func (ree *requestExecutionEnv) requestExecution() (chan graphsync.ResponseProgr
TerminateRequest: ree.terminateRequest,
Loader: ree.fal.AsyncLoad,
}.Start(executor.RequestExecution{
Ctx: ree.ctx,
P: ree.p,
LastResponse: &lastResponse,
Request: ree.request,
DoNotSendCids: ree.doNotSendCids,
Ctx: ree.ctx,
P: ree.p,
LastResponse: &lastResponse,
Request: ree.request,
DoNotSendCids: ree.doNotSendCids,
NodePrototypeChooser: ree.nodeStyleChooser,
ResumeMessages: ree.resumeMessages,
PauseMessages: ree.pauseMessages,
ResumeMessages: ree.resumeMessages,
PauseMessages: ree.pauseMessages,
})
}
......@@ -338,15 +338,15 @@ func (nrm *newRequestMessage) setupRequest(requestID graphsync.RequestID, rm *Re
Loader: rm.asyncLoader.AsyncLoad,
}.Start(
executor.RequestExecution{
Ctx: ctx,
P: p,
Request: request,
NetworkError: networkError,
LastResponse: lastResponse,
DoNotSendCids: doNotSendCids,
Ctx: ctx,
P: p,
Request: request,
NetworkError: networkError,
LastResponse: lastResponse,
DoNotSendCids: doNotSendCids,
NodePrototypeChooser: hooksResult.CustomChooser,
ResumeMessages: resumeMessages,
PauseMessages: pauseMessages,
ResumeMessages: resumeMessages,
PauseMessages: pauseMessages,
})
return incoming, incomingError
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment