Skip to content

Commit

Permalink
getPayload retry with 100ms timeout (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris authored Mar 10, 2023
1 parent 20f107f commit 4f6b07c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func SendHTTPRequestWithRetries(ctx context.Context, client http.Client, method,
code, err = SendHTTPRequest(ctx, client, method, url, userAgent, payload, dst)
if err != nil {
log.WithError(err).Warn("error making request to relay, retrying")
time.Sleep(100 * time.Millisecond) // note: this timeout is only applied between retries, it does not delay the initial request!
continue
}
return code, nil
Expand Down

0 comments on commit 4f6b07c

Please sign in to comment.