mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
parent
025b017277
commit
4adc542667
@ -118,10 +118,7 @@ type rateLimitedRoundTripper struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (rl *rateLimitedRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
func (rl *rateLimitedRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||||
startTime := time.Now()
|
|
||||||
rl.limiter.Accept()
|
rl.limiter.Accept()
|
||||||
// TODO: Reduce verbosity once #26119 is fixed.
|
|
||||||
glog.V(0).Infof("GCE api call: %s %s (throttled for %v)", req.Method, req.URL.String(), time.Now().Sub(startTime))
|
|
||||||
return rl.rt.RoundTrip(req)
|
return rl.rt.RoundTrip(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user