Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
a61132ef
Commit
a61132ef
authored
May 03, 2020
by
Will Scott
Committed by
Adin Schmahmann
Jul 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update test deps for graphsync
parent
d8bbf3f7
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
164 deletions
+48
-164
test/dependencies/go.mod
test/dependencies/go.mod
+2
-2
test/dependencies/go.sum
test/dependencies/go.sum
+41
-155
test/dependencies/graphsync-get/graphsync-get.go
test/dependencies/graphsync-get/graphsync-get.go
+5
-7
No files found.
test/dependencies/go.mod
View file @
a61132ef
...
...
@@ -9,7 +9,7 @@ require (
github.com/ipfs/go-cid v0.0.6
github.com/ipfs/go-cidutil v0.0.2
github.com/ipfs/go-datastore v0.4.4
github.com/ipfs/go-graphsync v0.0.
5
github.com/ipfs/go-graphsync v0.0.
6-0.20200428204348-97a8cf76a482
github.com/ipfs/go-ipfs-blockstore v1.0.0
github.com/ipfs/go-ipfs-exchange-offline v0.0.1
github.com/ipfs/go-log v1.0.4
...
...
@@ -18,7 +18,7 @@ require (
github.com/ipfs/hang-fds v0.0.2
github.com/ipfs/iptb v1.4.0
github.com/ipfs/iptb-plugins v0.3.0
github.com/ipld/go-ipld-prime v0.0.
2
-0.20
191108012745-28a82f04c785
github.com/ipld/go-ipld-prime v0.0.
4
-0.20
200503082126-7e0619f3a984
github.com/jbenet/go-random v0.0.0-20190219211222-123a90aedc0c
github.com/jbenet/go-random-files v0.0.0-20190219210431-31b3f20ebded
github.com/libp2p/go-libp2p v0.9.6
...
...
test/dependencies/go.sum
View file @
a61132ef
This diff is collapsed.
Click to expand it.
test/dependencies/graphsync-get/graphsync-get.go
View file @
a61132ef
...
...
@@ -13,16 +13,15 @@ import (
dssync
"github.com/ipfs/go-datastore/sync"
"github.com/ipfs/go-graphsync"
gsimpl
"github.com/ipfs/go-graphsync/impl"
"github.com/ipfs/go-graphsync/ipldbridge"
"github.com/ipfs/go-graphsync/network"
"github.com/ipfs/go-graphsync/storeutil"
"github.com/ipfs/go-ipfs-blockstore"
"github.com/ipfs/go-ipfs-exchange-offline"
blockstore
"github.com/ipfs/go-ipfs-blockstore"
offline
"github.com/ipfs/go-ipfs-exchange-offline"
"github.com/ipfs/go-merkledag"
uio
"github.com/ipfs/go-unixfs/io"
"github.com/ipld/go-ipld-prime"
ipldfree
"github.com/ipld/go-ipld-prime/impl/free"
cidlink
"github.com/ipld/go-ipld-prime/linking/cid"
basicnode
"github.com/ipld/go-ipld-prime/node/basic"
ipldselector
"github.com/ipld/go-ipld-prime/traversal/selector"
"github.com/ipld/go-ipld-prime/traversal/selector/builder"
"github.com/libp2p/go-libp2p"
...
...
@@ -33,16 +32,15 @@ import (
func
newGraphsync
(
ctx
context
.
Context
,
p2p
host
.
Host
,
bs
blockstore
.
Blockstore
)
(
graphsync
.
GraphExchange
,
error
)
{
network
:=
network
.
NewFromLibp2pHost
(
p2p
)
ipldBridge
:=
ipldbridge
.
NewIPLDBridge
()
return
gsimpl
.
New
(
ctx
,
network
,
ipldBridge
,
network
,
storeutil
.
LoaderForBlockstore
(
bs
),
storeutil
.
StorerForBlockstore
(
bs
),
),
nil
}
var
selectAll
ipld
.
Node
=
func
()
ipld
.
Node
{
ssb
:=
builder
.
NewSelectorSpecBuilder
(
ipldfree
.
NodeBuilder
()
)
ssb
:=
builder
.
NewSelectorSpecBuilder
(
basicnode
.
Style
.
Any
)
return
ssb
.
ExploreRecursive
(
ipldselector
.
RecursionLimitDepth
(
100
),
// default max
ssb
.
ExploreAll
(
ssb
.
ExploreRecursiveEdge
()),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment