aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filechunk_manifest.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-12 05:59:52 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-12 05:59:52 -0800
commit7d9dc3c6a273e21d719605a650504a30e545b078 (patch)
treefdcecf9ba99f7a88cab976c6879c338408e26fc6 /weed/filer/filechunk_manifest.go
parent487e435679d6c8cc153b8ef048b8957478cd3d0c (diff)
downloadseaweedfs-7d9dc3c6a273e21d719605a650504a30e545b078.tar.xz
seaweedfs-7d9dc3c6a273e21d719605a650504a30e545b078.zip
use fasthttp lib to read
Diffstat (limited to 'weed/filer/filechunk_manifest.go')
-rw-r--r--weed/filer/filechunk_manifest.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/filechunk_manifest.go b/weed/filer/filechunk_manifest.go
index 845bfaec1..99a62c90c 100644
--- a/weed/filer/filechunk_manifest.go
+++ b/weed/filer/filechunk_manifest.go
@@ -102,7 +102,7 @@ func retriedFetchChunkData(urlStrings []string, cipherKey []byte, isGzipped bool
for waitTime := time.Second; waitTime < util.RetryWaitTime; waitTime += waitTime / 2 {
for _, urlString := range urlStrings {
- shouldRetry, err = util.ReadUrlAsStream(urlString+"?readDeleted=true", cipherKey, isGzipped, isFullChunk, offset, size, func(data []byte) {
+ shouldRetry, err = util.FastReadUrlAsStream(urlString+"?readDeleted=true", cipherKey, isGzipped, isFullChunk, offset, size, func(data []byte) {
buffer.Write(data)
})
if !shouldRetry {