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

Commit 20e5cd5

Browse files
committed
refactor(hamt): remove child interface from hamt package
1 parent e3cca8a commit 20e5cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hamt/hamt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ func (ds *Shard) insertChild(idx int, key string, lnk *ipld.Link) error {
362362
}
363363

364364
ds.children = append(ds.children[:i], append([]child{sv}, ds.children[i:]...)...)
365-
ds.nd.SetLinks(append(ds.nd.Links()[:i], append([]*ipld.Link{nil}, ds.nd.Links()[i:]...)...))
365+
ds.nd.SetLinks(append(ds.nd.Links()[:i], append([]*ipld.Link{lnk}, ds.nd.Links()[i:]...)...))
366366
return nil
367367
}
368368

0 commit comments

Comments
 (0)