We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23945a3 commit 90a440cCopy full SHA for 90a440c
internal/retries/service.go
@@ -40,7 +40,7 @@ func HandleRetries(w http.ResponseWriter, r *http.Request) {
40
callCounts[requestID]++
41
42
if callCounts[requestID] < numRetries {
43
- // static one second retry after timeout
+ // sets a static one second retry after timeout, the client will decide whether or not to respect it
44
w.Header().Set("Retry-After", "1")
45
w.WriteHeader(http.StatusServiceUnavailable)
46
_, _ = w.Write([]byte("request failed please retry"))
0 commit comments