Skip to content

Commit 90a440c

Browse files
Update service.go
1 parent 23945a3 commit 90a440c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/retries/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func HandleRetries(w http.ResponseWriter, r *http.Request) {
4040
callCounts[requestID]++
4141

4242
if callCounts[requestID] < numRetries {
43-
// static one second retry after timeout
43+
// sets a static one second retry after timeout, the client will decide whether or not to respect it
4444
w.Header().Set("Retry-After", "1")
4545
w.WriteHeader(http.StatusServiceUnavailable)
4646
_, _ = w.Write([]byte("request failed please retry"))

0 commit comments

Comments
 (0)