mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 07:17:25 +08:00
rename UnCompressData to DecompressData
This commit is contained in:
@@ -26,7 +26,7 @@ func GzipData(input []byte) ([]byte, error) {
|
||||
}
|
||||
return buf.Bytes(), nil
|
||||
}
|
||||
func UnCompressData(input []byte) ([]byte, error) {
|
||||
func DecompressData(input []byte) ([]byte, error) {
|
||||
if IsGzippedContent(input) {
|
||||
return ungzipData(input)
|
||||
}
|
||||
|
@@ -310,7 +310,7 @@ func readEncryptedUrl(fileUrl string, cipherKey []byte, isContentCompressed bool
|
||||
return fmt.Errorf("decrypt %s: %v", fileUrl, err)
|
||||
}
|
||||
if isContentCompressed {
|
||||
decryptedData, err = UnCompressData(decryptedData)
|
||||
decryptedData, err = DecompressData(decryptedData)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unzip decrypt %s: %v", fileUrl, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user