@cryptotaxi247 / kubo / commits / fbf8f5ddb

rename go-ipld-format package name from node to ipld

...to match the recent mass rename in #4610. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Jan 30, 2018 at 14:21 UTC fbf8f5ddbdadca7c094af0d15e4e90b5c5431d25
1 file changed +4 -4
core/coreapi/object.go
+4 -4
@@ -19,7 +19,7 @@ import (
19 "errors"
20 "fmt"
21 cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid"
22 - node "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
22 + ipld "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
23 )
24
25 const inputLimit = 2 << 20
@@ -45,7 +45,7 @@ func (api *ObjectAPI) New(ctx context.Context, opts ...caopts.ObjectNewOption) (
45 return nil, err
46 }
47
48 - var n node.Node
48 + var n ipld.Node
49 switch options.Type {
50 case "empty":
51 n = new(dag.ProtoNode)
@@ -304,13 +304,13 @@ func deserializeNode(nd *Node, dataFieldEncoding string) (*dag.ProtoNode, error)
304 return nil, fmt.Errorf("Unkown data field encoding")
305 }
306
307 - dagnode.SetLinks(make([]*node.Link, len(nd.Links)))
307 + dagnode.SetLinks(make([]*ipld.Link, len(nd.Links)))
308 for i, link := range nd.Links {
309 c, err := cid.Decode(link.Hash)
310 if err != nil {
311 return nil, err
312 }
313 - dagnode.Links()[i] = &node.Link{
313 + dagnode.Links()[i] = &ipld.Link{
314 Name: link.Name,
315 Size: link.Size,
316 Cid: c,