aboutsummaryrefslogtreecommitdiff
path: root/weed/util
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-06-20 08:16:16 -0700
committerChris Lu <chris.lu@gmail.com>2020-06-20 08:16:16 -0700
commit3080c197e3e75dfd48ce2bda08c46d1f6423e65c (patch)
tree72fe1d5a7e32117e78afe7f9c32ca7fa17a64fa8 /weed/util
parent97239ce6f109448e1f0488db31a84d40837cb168 (diff)
downloadseaweedfs-3080c197e3e75dfd48ce2bda08c46d1f6423e65c.tar.xz
seaweedfs-3080c197e3e75dfd48ce2bda08c46d1f6423e65c.zip
rename UnCompressData to DecompressData
Diffstat (limited to 'weed/util')
-rw-r--r--weed/util/compression.go2
-rw-r--r--weed/util/http_util.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/util/compression.go b/weed/util/compression.go
index ff5e3ad3f..003f06cbf 100644
--- a/weed/util/compression.go
+++ b/weed/util/compression.go
@@ -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)
}
diff --git a/weed/util/http_util.go b/weed/util/http_util.go
index 51748e92a..c67eb3276 100644
--- a/weed/util/http_util.go
+++ b/weed/util/http_util.go
@@ -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)
}