Ver Fonte

Fix stack overflow.

Matt Bolt há 6 anos atrás
pai
commit
4dc37fced0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      pkg/prom/prom.go

+ 1 - 1
pkg/prom/prom.go

@@ -34,7 +34,7 @@ type RateLimitedPrometheusClient struct {
 
 // Passthrough to the prometheus client API
 func (rlpc *RateLimitedPrometheusClient) URL(ep string, args map[string]string) *url.URL {
-	return rlpc.URL(ep, args)
+	return rlpc.client.URL(ep, args)
 }
 
 // Rate limit and passthrough to prometheus client API