diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2020-10-12 11:01:13 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-12 11:01:13 +0800 |
| commit | 2ff727a32d6d879a49ff5848b592518c96bb6403 (patch) | |
| tree | db952c7f054d44be208c5c4b4bc4c6769975a82c /weed/filer/filechunk_manifest.go | |
| parent | b9a446839a52739ddfdd072d0208c4dfe659056d (diff) | |
| parent | d5fcb0f474ac72389b89ba2d42adc4089b0f3e88 (diff) | |
| download | seaweedfs-2ff727a32d6d879a49ff5848b592518c96bb6403.tar.xz seaweedfs-2ff727a32d6d879a49ff5848b592518c96bb6403.zip | |
Merge pull request #25 from chrislusf/master
sync
Diffstat (limited to 'weed/filer/filechunk_manifest.go')
| -rw-r--r-- | weed/filer/filechunk_manifest.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/filechunk_manifest.go b/weed/filer/filechunk_manifest.go index 9e53e008f..2df8a4bbf 100644 --- a/weed/filer/filechunk_manifest.go +++ b/weed/filer/filechunk_manifest.go @@ -98,7 +98,7 @@ func retriedFetchChunkData(urlStrings []string, cipherKey []byte, isGzipped bool var err error var buffer bytes.Buffer - for waitTime := time.Second; waitTime < 10*time.Second; waitTime += waitTime / 2 { + for waitTime := time.Second; waitTime < ReadWaitTime; waitTime += waitTime / 2 { for _, urlString := range urlStrings { err = util.ReadUrlAsStream(urlString, cipherKey, isGzipped, isFullChunk, offset, size, func(data []byte) { buffer.Write(data) |
