Skip to content

Commit

Permalink
TODO grooming
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSimmons committed Mar 30, 2024
1 parent 3011ceb commit 5ba03b4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions GettyImages.Api/PolledPathApiRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ public async Task<TExecuteResponse> ExecuteAsync(TimeSpan pollDelay, TimeSpan ti
try
{
var cancellationTokenWithTimeout = new CancellationTokenSource(timeout);
// TODO - Can we use Polly instead of half-rolling our own timeout logic?

var loopDelay = TimeSpan.Zero;

do
{
await Task.Delay(loopDelay, cancellationTokenWithTimeout.Token);

// TODO - Can we utilize GeneratedImages.WithGenerationRequestId?

httpResponseMessage = await helper.GetRawHttpResponseMessageAsync(BuildQuery(QueryParameters),
path: Path, BuildHeaders(HeaderParameters), cancellationTokenWithTimeout.Token);
loopDelay = pollDelay;
Expand Down

0 comments on commit 5ba03b4

Please sign in to comment.