Skip to content

Commit

Permalink
don't clear the cached node when changing the CID builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Feb 27, 2019
1 parent 11062dc commit 5f44a52
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func (n *ProtoNode) SetCidBuilder(builder cid.Builder) {
n.builder = v0CidPrefix
} else {
n.builder = builder.WithCodec(cid.DagProtobuf)
n.encoded = nil
n.cached = cid.Undef
}
}
Expand Down

0 comments on commit 5f44a52

Please sign in to comment.