Skip to content

Commit 8de319d

Browse files
StebalienAFDudley
authored andcommitted
rename go-ipld-format package name from node to ipld
...to match the recent mass rename in ipfs#4610. License: MIT Signed-off-by: Steven Allen <[email protected]>
1 parent 5836bd2 commit 8de319d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/coreapi/object.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"errors"
2020
"fmt"
2121
cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid"
22-
node "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
22+
ipld "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
2323
)
2424

2525
const inputLimit = 2 << 20
@@ -45,7 +45,7 @@ func (api *ObjectAPI) New(ctx context.Context, opts ...caopts.ObjectNewOption) (
4545
return nil, err
4646
}
4747

48-
var n node.Node
48+
var n ipld.Node
4949
switch options.Type {
5050
case "empty":
5151
n = new(dag.ProtoNode)
@@ -304,13 +304,13 @@ func deserializeNode(nd *Node, dataFieldEncoding string) (*dag.ProtoNode, error)
304304
return nil, fmt.Errorf("Unkown data field encoding")
305305
}
306306

307-
dagnode.SetLinks(make([]*node.Link, len(nd.Links)))
307+
dagnode.SetLinks(make([]*ipld.Link, len(nd.Links)))
308308
for i, link := range nd.Links {
309309
c, err := cid.Decode(link.Hash)
310310
if err != nil {
311311
return nil, err
312312
}
313-
dagnode.Links()[i] = &node.Link{
313+
dagnode.Links()[i] = &ipld.Link{
314314
Name: link.Name,
315315
Size: link.Size,
316316
Cid: c,

0 commit comments

Comments
 (0)