Skip to content

Commit 4f6b07c

Browse files
authored
getPayload retry with 100ms timeout (#465)
1 parent 20f107f commit 4f6b07c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/utils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func SendHTTPRequestWithRetries(ctx context.Context, client http.Client, method,
118118
code, err = SendHTTPRequest(ctx, client, method, url, userAgent, payload, dst)
119119
if err != nil {
120120
log.WithError(err).Warn("error making request to relay, retrying")
121+
time.Sleep(100 * time.Millisecond) // note: this timeout is only applied between retries, it does not delay the initial request!
121122
continue
122123
}
123124
return code, nil

0 commit comments

Comments
 (0)