Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit cb0d838

Browse files
authored
Merge pull request #75 from MichaelMure/update-merkledag
update the the last go-merkledag
2 parents 06cb1c7 + e1cb36f commit cb0d838

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/ipfs/go-ipfs-posinfo v0.0.1
1212
github.com/ipfs/go-ipfs-util v0.0.1
1313
github.com/ipfs/go-ipld-format v0.0.2
14-
github.com/ipfs/go-merkledag v0.2.0
14+
github.com/ipfs/go-merkledag v0.2.2
1515
github.com/multiformats/go-multihash v0.0.5
1616
github.com/polydawn/refmt v0.0.0-20190408063855-01bf1e26dd14 // indirect
1717
github.com/smartystreets/assertions v1.0.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ github.com/ipfs/go-ipld-format v0.0.2 h1:OVAGlyYT6JPZ0pEfGntFPS40lfrDmaDbQwNHEY2
114114
github.com/ipfs/go-ipld-format v0.0.2/go.mod h1:4B6+FM2u9OJ9zCV+kSbgFAZlOrv1Hqbf0INGQgiKf9k=
115115
github.com/ipfs/go-log v0.0.1 h1:9XTUN/rW64BCG1YhPK9Hoy3q8nr4gOmHHBpgFdfw6Lc=
116116
github.com/ipfs/go-log v0.0.1/go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM=
117-
github.com/ipfs/go-merkledag v0.2.0 h1:EAjIQCgZ6/DnOAlKY3+59j72FD9BsYtNaCRSmN0xIbU=
118-
github.com/ipfs/go-merkledag v0.2.0/go.mod h1:SQiXrtSts3KGNmgOzMICy5c0POOpUNQLvB3ClKnBAlk=
117+
github.com/ipfs/go-merkledag v0.2.2 h1:cw3eEYSH8L1gGa+HTDB08Q7hh5EUfztKf075JIlg5ww=
118+
github.com/ipfs/go-merkledag v0.2.2/go.mod h1:SQiXrtSts3KGNmgOzMICy5c0POOpUNQLvB3ClKnBAlk=
119119
github.com/ipfs/go-metrics-interface v0.0.1 h1:j+cpbjYvu4R8zbleSs36gvB7jR+wsL2fGD6n0jO4kdg=
120120
github.com/ipfs/go-metrics-interface v0.0.1/go.mod h1:6s6euYU4zowdslK0GKHmqaIZ3j/b/tL7HTWtJ4VPgWY=
121121
github.com/ipfs/go-peertaskqueue v0.1.0 h1:bpRbgv76eT4avutNPDFZuCPOQus6qTgurEYxfulgZW4=

hamt/hamt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func (ds *Shard) ForEachLink(ctx context.Context, f func(*ipld.Link) error) erro
330330
}
331331

332332
// EnumLinksAsync returns a channel which will receive Links in the directory
333-
// as they are enumerated, where order is not gauranteed
333+
// as they are enumerated, where order is not guaranteed
334334
func (ds *Shard) EnumLinksAsync(ctx context.Context) <-chan format.LinkResult {
335335
linkResults := make(chan format.LinkResult)
336336
ctx, cancel := context.WithCancel(ctx)
@@ -339,7 +339,7 @@ func (ds *Shard) EnumLinksAsync(ctx context.Context) <-chan format.LinkResult {
339339
defer cancel()
340340
getLinks := makeAsyncTrieGetLinks(ds.dserv, linkResults)
341341
cset := cid.NewSet()
342-
err := dag.WalkParallel(ctx, getLinks, ds.cid, cset.Visit)
342+
err := dag.Walk(ctx, getLinks, ds.cid, cset.Visit, dag.Concurrent())
343343
if err != nil {
344344
emitResult(ctx, linkResults, format.LinkResult{Link: nil, Err: err})
345345
}

0 commit comments

Comments
 (0)