Skip to content

Commit

Permalink
don't clear the cache CID when decoding a cached protobuf node
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Feb 27, 2019
1 parent 5f44a52 commit 3bdd47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coding.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func DecodeProtobufBlock(b blocks.Block) (ipld.Node, error) {
}

decnd.cached = c
decnd.SetCidBuilder(c.Prefix())
decnd.builder = c.Prefix()
return decnd, nil
}

Expand Down

0 comments on commit 3bdd47f

Please sign in to comment.