Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps for ADL selectors #20

Merged
merged 4 commits into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/builder/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func estimateDirSize(entries []dagpb.PBLink) int {
// BuildUnixFSDirectory creates a directory link over a collection of entries.
func BuildUnixFSDirectory(entries []dagpb.PBLink, ls *ipld.LinkSystem) (ipld.Link, error) {
if estimateDirSize(entries) > shardSplitThreshold {
return BuildUnixFSShardedDirectory(defaultShardWidth, multihash.MURMUR3_128, entries, ls)
return BuildUnixFSShardedDirectory(defaultShardWidth, multihash.MURMUR3X64_64, entries, ls)
}
ufd, err := BuildUnixFS(func(b *Builder) {
DataType(b, data.Data_Directory)
Expand Down
4 changes: 2 additions & 2 deletions file/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ func open(car string, t *testing.T) (ipld.Node, *ipld.LinkSystem) {
t.Fatal(err)
}
ls := cidlink.DefaultLinkSystem()
ls.StorageReadOpener = func(_ ipld.LinkContext, l ipld.Link) (io.Reader, error) {
ls.StorageReadOpener = func(lctx ipld.LinkContext, l ipld.Link) (io.Reader, error) {
cl, ok := l.(cidlink.Link)
if !ok {
return nil, fmt.Errorf("couldn't load link")
}
blk, err := baseStore.Get(cl.Cid)
blk, err := baseStore.Get(lctx.Ctx, cl.Cid)
if err != nil {
return nil, err
}
Expand Down
13 changes: 6 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ require (
github.com/Stebalien/go-bitfield v0.0.1
github.com/ipfs/go-bitfield v1.0.0
github.com/ipfs/go-cid v0.1.0
github.com/ipfs/go-datastore v0.4.6 // indirect
github.com/ipfs/go-ipfs-chunker v0.0.1
github.com/ipfs/go-ipfs-util v0.0.2
github.com/ipfs/go-ipld-format v0.2.0
github.com/ipfs/go-merkledag v0.3.2
github.com/ipfs/go-unixfs v0.2.4
github.com/ipld/go-car/v2 v2.1.0
github.com/ipfs/go-merkledag v0.5.1
github.com/ipfs/go-unixfs v0.3.1
github.com/ipld/go-car/v2 v2.1.1
github.com/ipld/go-codec-dagpb v1.3.0
github.com/ipld/go-ipld-prime v0.12.4-0.20211014180653-3ba656a3bc6b
github.com/multiformats/go-multicodec v0.3.1-0.20210902112759-1539a079fd61
github.com/multiformats/go-multihash v0.0.17-0.20211012170226-654b06d7912a
github.com/ipld/go-ipld-prime v0.14.4-0.20220110161855-fc09d6b768e9
github.com/multiformats/go-multicodec v0.3.1-0.20211210143421-a526f306ed2c
github.com/multiformats/go-multihash v0.1.0
github.com/spaolacci/murmur3 v1.1.0
github.com/stretchr/testify v1.7.0
google.golang.org/protobuf v1.27.1
Expand Down
Loading