blob: 17b79001715cb5fbe047647d838f99ca8f5a493f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package ratelimit
import (
"sync"
)
type RateLimiter struct {
tokens chan struct{}
done chan struct{}
}
type MultiLimiter struct {
mu sync.Mutex
limiters []*RateLimiter
}
|