chore: avoid re-validated already validated CIDs
This commit is contained in:
@@ -38,7 +38,7 @@ func (p V0Builder) Sum(data []byte) (Cid, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return Undef, err
|
return Undef, err
|
||||||
}
|
}
|
||||||
return NewCidV0(hash), nil
|
return Cid{string(hash)}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p V0Builder) GetCodec() uint64 {
|
func (p V0Builder) GetCodec() uint64 {
|
||||||
|
|||||||
Reference in New Issue
Block a user