mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 01:17:56 +08:00
rename UnCompressData to DecompressData
This commit is contained in:
@@ -56,7 +56,7 @@ func (s ChunkList) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
|
||||
func LoadChunkManifest(buffer []byte, isCompressed bool) (*ChunkManifest, error) {
|
||||
if isCompressed {
|
||||
var err error
|
||||
if buffer, err = util.UnCompressData(buffer); err != nil {
|
||||
if buffer, err = util.DecompressData(buffer); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
@@ -121,7 +121,7 @@ func doUploadData(uploadUrl string, filename string, cipher bool, data []byte, i
|
||||
}
|
||||
} else if isInputGzipped {
|
||||
// just to get the clear data length
|
||||
clearData, err := util.UnCompressData(data)
|
||||
clearData, err := util.DecompressData(data)
|
||||
if err == nil {
|
||||
clearDataLen = len(clearData)
|
||||
}
|
||||
|
Reference in New Issue
Block a user