aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-07-26 11:47:11 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-07-26 11:47:11 +0500
commit046c3d5ad4797869ebdceb7e657adc363410f572 (patch)
tree66d2a39057082b09807110df2b44a9672bb6950b
parent475185fb723b50e05f0afe39f7f529302bcee11a (diff)
downloadseaweedfs-046c3d5ad4797869ebdceb7e657adc363410f572.tar.xz
seaweedfs-046c3d5ad4797869ebdceb7e657adc363410f572.zip
fix logic else brake
-rw-r--r--weed/filer/stream.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filer/stream.go b/weed/filer/stream.go
index 12a870c80..9f2991a02 100644
--- a/weed/filer/stream.go
+++ b/weed/filer/stream.go
@@ -81,6 +81,7 @@ func StreamContent(masterClient wdclient.HasLookupFileIdFunction, writer io.Writ
urlStrings, err = masterClient.GetLookupFileIdFunction()(chunkView.FileId)
if err != nil || len(urlStrings) == 0 {
time.Sleep(backoff)
+ } else {
break
}
}