Commit 8f8c41d0 authored by Aaron Raddon's avatar Aaron Raddon

throttle doc

parent 01f6ba39
......@@ -19,7 +19,7 @@ type Throttler struct {
}
// new Throttler that will tell you to limit or not based
// on given max events per second input @limit
// on given @max events @per duration
func NewThrottler(max int, per time.Duration) *Throttler {
return &Throttler{
maxPer: float64(max),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment