mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 07:28:20 +08:00
fix hamt node not protobuf error
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
@ -100,7 +100,7 @@ func makeShard(ds ipld.DAGService, size int) (*Shard, error) {
|
||||
func NewHamtFromDag(dserv ipld.DAGService, nd ipld.Node) (*Shard, error) {
|
||||
pbnd, ok := nd.(*dag.ProtoNode)
|
||||
if !ok {
|
||||
return nil, dag.ErrLinkNotFound
|
||||
return nil, dag.ErrNotProtobuf
|
||||
}
|
||||
|
||||
pbd, err := format.FromBytes(pbnd.Data())
|
||||
|
Reference in New Issue
Block a user