Closed Jorropo closed 1 year ago
Suggested version: v0.2.3
Changes in go.mod
file(s):
(empty)
gorelease
says:
# summary
Suggested version: v0.2.3
gocompat
says:
Your branch is up to date with 'origin/master'.
This PR is modifying both version.json
and non-markdown files.
The Release Checker is not able to analyse files that are not checked in to master
. This might cause the above analysis to be inaccurate.
Please consider performing all the code changes in a separate PR before cutting the release.
A draft GitHub Release has been created. It is going to be published when this PR is merged. You can modify its' body to include any release notes you wish to include with the release.
I took extra efforts for this to be a backward compatible change, I think
DecodedMultihash
should return a value struct not a pointer.I also updated the error type to a value because this allows for 1 instead of 2 allocations when erroring.
I originally found this problem by benchmarking
go-cid
:We can see it call
mh.Cast
andmh.Cast
callDecode
and instantly drops theDecodedMultihash
. The point of this is purely to validate the multihash.