fix: use a 32 byte hash, not 64
This commit is contained in:
parent
276719f47f
commit
58f734d3b3
|
@ -122,7 +122,7 @@ func (s *StorageServiceImpl) GetHash(file io.ReadSeeker) ([]byte, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
hash := blake3.Sum512(buf.Bytes())
|
hash := blake3.Sum256(buf.Bytes())
|
||||||
|
|
||||||
return hash[:], nil
|
return hash[:], nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue