1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-08 10:07:25 +02:00

fix logic else brake

This commit is contained in:
Konstantin Lebedev 2022-07-26 11:47:11 +05:00
parent 475185fb72
commit 046c3d5ad4

View file

@ -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
}
}