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