Skip to content

Commit

Permalink
rename go-ipld-format package name from node to ipld
Browse files Browse the repository at this point in the history
...to match the recent mass rename in #4610.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Jan 30, 2018
1 parent b1dbc1c commit fbf8f5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/coreapi/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"errors"
"fmt"
cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid"
node "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
ipld "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
)

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

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

dagnode.SetLinks(make([]*node.Link, len(nd.Links)))
dagnode.SetLinks(make([]*ipld.Link, len(nd.Links)))
for i, link := range nd.Links {
c, err := cid.Decode(link.Hash)
if err != nil {
return nil, err
}
dagnode.Links()[i] = &node.Link{
dagnode.Links()[i] = &ipld.Link{
Name: link.Name,
Size: link.Size,
Cid: c,
Expand Down

0 comments on commit fbf8f5d

Please sign in to comment.