diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-12 05:59:52 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-12 05:59:52 -0800 |
| commit | 7d9dc3c6a273e21d719605a650504a30e545b078 (patch) | |
| tree | fdcecf9ba99f7a88cab976c6879c338408e26fc6 /weed/util/http_util.go | |
| parent | 487e435679d6c8cc153b8ef048b8957478cd3d0c (diff) | |
| download | seaweedfs-7d9dc3c6a273e21d719605a650504a30e545b078.tar.xz seaweedfs-7d9dc3c6a273e21d719605a650504a30e545b078.zip | |
use fasthttp lib to read
Diffstat (limited to 'weed/util/http_util.go')
| -rw-r--r-- | weed/util/http_util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 135d10c45..eff282bab 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -313,7 +313,7 @@ func ReadUrlAsStream(fileUrl string, cipherKey []byte, isContentGzipped bool, is } func readEncryptedUrl(fileUrl string, cipherKey []byte, isContentCompressed bool, isFullChunk bool, offset int64, size int, fn func(data []byte)) (bool, error) { - encryptedData, retryable, err := Get(fileUrl) + encryptedData, retryable, err := FastGet(fileUrl) if err != nil { return retryable, fmt.Errorf("fetch %s: %v", fileUrl, err) } |
