From 046c3d5ad4797869ebdceb7e657adc363410f572 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Tue, 26 Jul 2022 11:47:11 +0500 Subject: [PATCH] fix logic else brake --- weed/filer/stream.go | 1 + 1 file changed, 1 insertion(+) 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 } }