Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
b3a517a2
Commit
b3a517a2
authored
Feb 25, 2016
by
Mildred Ki'Lya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Encoded() to EncodeProtobuf()
License: MIT Signed-off-by:
Mildred Ki'Lya
<
mildred-pub.git@mildred.fr
>
parent
939195c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mod/dagmodifier.go
mod/dagmodifier.go
+2
-2
No files found.
mod/dagmodifier.go
View file @
b3a517a2
...
...
@@ -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
.
Encode
d
(
true
)
_
,
err
=
node
.
Encode
Protobuf
(
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
.
Encode
d
(
true
)
_
,
err
=
nd
.
Encode
Protobuf
(
true
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment