Browse Source

fix logic else brake

pull/3364/head
Konstantin Lebedev 2 years ago
parent
commit
046c3d5ad4
  1. 1
      weed/filer/stream.go

1
weed/filer/stream.go

@ -81,6 +81,7 @@ func StreamContent(masterClient wdclient.HasLookupFileIdFunction, writer io.Writ
urlStrings, err = masterClient.GetLookupFileIdFunction()(chunkView.FileId) urlStrings, err = masterClient.GetLookupFileIdFunction()(chunkView.FileId)
if err != nil || len(urlStrings) == 0 { if err != nil || len(urlStrings) == 0 {
time.Sleep(backoff) time.Sleep(backoff)
} else {
break break
} }
} }

Loading…
Cancel
Save