Remove dead code ContextRoundTripper
package middleware
import (
- "context"
"net/http"
"sync"
@@ -48,12 +47,3 @@ func (t *RoundTripRateLimiter) RoundTrip(r *http.Request) (*http.Response, error
}
return t.tx.RoundTrip(r)
}
-
-type ContextRoundTripper struct {
- Transport http.RoundTripper
- Ctx context.Context
-}
-
-func (rt *ContextRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) {
- return rt.Transport.RoundTrip(r.WithContext(rt.Ctx))
-}
