rename UnCompressData to DecompressData

This commit is contained in:
Chris Lu
2020-06-20 08:16:16 -07:00
parent 97239ce6f1
commit 3080c197e3
7 changed files with 8 additions and 8 deletions

View File

@@ -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
}
}

View File

@@ -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)
}