Skip to content

Commit

Permalink
Remove race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Feb 5, 2025
1 parent 8cfc90d commit ed38ca1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions race_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ func (t *raceTransport) RoundTrip(req *http.Request) (*http.Response, error) {
t.connectedRoundTripper(ctx, d, req, errCh, roundTrippherCh, cancel, httpErrors)
}(d)
}
// Create a span for the request/response cycle.
ctx, reqRespSpan := tracer.Start(ctx, "RequestResponse")
defer reqRespSpan.End()
// Select up to the first response or error, or until we've hit the target number of tries or the context is canceled.
retryTimes := 3
for i := 0; i < retryTimes; i++ {
Expand Down

0 comments on commit ed38ca1

Please sign in to comment.