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-merkledag
Commits
5f44a52a
Commit
5f44a52a
authored
Feb 27, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't clear the cached node when changing the CID builder
parent
11062dcd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
node.go
node.go
+0
-1
No files found.
node.go
View file @
5f44a52a
...
@@ -78,7 +78,6 @@ func (n *ProtoNode) SetCidBuilder(builder cid.Builder) {
...
@@ -78,7 +78,6 @@ func (n *ProtoNode) SetCidBuilder(builder cid.Builder) {
n
.
builder
=
v0CidPrefix
n
.
builder
=
v0CidPrefix
}
else
{
}
else
{
n
.
builder
=
builder
.
WithCodec
(
cid
.
DagProtobuf
)
n
.
builder
=
builder
.
WithCodec
(
cid
.
DagProtobuf
)
n
.
encoded
=
nil
n
.
cached
=
cid
.
Undef
n
.
cached
=
cid
.
Undef
}
}
}
}
...
...
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