Skip to content

Commit

Permalink
Delay not Sleep!
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliov committed Dec 29, 2021
1 parent 10cc9a7 commit f8378d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aggregator-cli/Kudu/KuduApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ internal async Task<string> ReadApplicationLogAsync(string functionName, int log
else
{
logger.WriteWarning($"Cannot get listing for {functionName} (attempt #{attempt+1}): {listingResponse.ReasonPhrase}");
Thread.Sleep(delay[attempt]);
await Task.Delay(delay[attempt]);
}
}
}
Expand Down

0 comments on commit f8378d8

Please sign in to comment.