diff --git a/ziti-agent/cmd/webhook/mux.go b/ziti-agent/cmd/webhook/mux.go index 58b41eb..b73b6ed 100644 --- a/ziti-agent/cmd/webhook/mux.go +++ b/ziti-agent/cmd/webhook/mux.go @@ -6,8 +6,8 @@ import ( "golang.org/x/time/rate" ) -// Rate limit - 5 token to be consumed per second, with a maximum burst size of 15. -var rateLimiter = rate.NewLimiter(rate.Limit(15), 1) +// Rate limit - 1 token to be consumed per second, with a maximum burst size of 3. +var rateLimiter = rate.NewLimiter(rate.Limit(1), 3) // CustomServeMux implements a custom ServeMux with a rate limiter and channel queue type customMux struct {