Merge pull request #6314 from bparees/tokenbucket
add a blocking accept method to RateLimiter
This commit is contained in:
@@ -36,6 +36,7 @@ type fakeRL bool
|
||||
|
||||
func (fakeRL) Stop() {}
|
||||
func (f fakeRL) CanAccept() bool { return bool(f) }
|
||||
func (f fakeRL) Accept() {}
|
||||
|
||||
func expectHTTP(url string, code int, t *testing.T) {
|
||||
r, err := http.Get(url)
|
||||
|
Reference in New Issue
Block a user