Skip to content

Commit

Permalink
change rate to burst of 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszSki committed Oct 1, 2024
1 parent 9621800 commit 4e5f0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ziti-agent/cmd/webhook/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

// Rate limit - 1 token to be consumed per second, with a maximum burst size of 3.
var rateLimiter = rate.NewLimiter(rate.Limit(1), 3)
var rateLimiter = rate.NewLimiter(rate.Limit(1), 5)

// CustomServeMux implements a custom ServeMux with a rate limiter and channel queue
type customMux struct {
Expand Down

0 comments on commit 4e5f0f1

Please sign in to comment.