MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / WithCapacity

Function WithCapacity

common/limiter/limiter.go:79–81  ·  view source on GitHub ↗
(c int64)

Source from the content-addressed store, hash-verified

77type Option func(*Config)
78
79func WithCapacity(c int64) Option {
80 return func(cfg *Config) { cfg.Capacity = c }
81}
82
83func WithRate(r int64) Option {
84 return func(cfg *Config) { cfg.Rate = r }

Callers 1

redisRateLimitHandlerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected