1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-02 01:11:24 +08:00

Rename Encoded() to EncodeProtobuf()

License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
This commit is contained in:
Mildred Ki'Lya
2016-02-25 07:35:28 +01:00
parent 1f5b76ac18
commit 7c11fe57cb
5 changed files with 13 additions and 13 deletions

View File

@ -258,7 +258,7 @@ func (dm *DagModifier) modifyDag(node *mdag.Node, offset uint64, data io.Reader)
node.Links[i].Hash = mh.Multihash(k)
// Recache serialized node
_, err = node.Encoded(true)
_, err = node.EncodeProtobuf(true)
if err != nil {
return "", false, err
}
@ -489,7 +489,7 @@ func dagTruncate(ctx context.Context, nd *mdag.Node, size uint64, ds mdag.DAGSer
nd.Data = d
// invalidate cache and recompute serialized data
_, err = nd.Encoded(true)
_, err = nd.EncodeProtobuf(true)
if err != nil {
return nil, err
}