Skip to content

Commit

Permalink
change rate
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszSki committed Oct 1, 2024
1 parent 7de7adb commit 9621800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ziti-agent/cmd/webhook/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9621800

Please sign in to comment.