Skip to content

Commit

Permalink
More fixes of English
Browse files Browse the repository at this point in the history
  • Loading branch information
jwells131313 committed Mar 25, 2019
1 parent 80f064d commit d364099
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rate/leakybucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ type Limiter interface {
// Add adds the given number of elements to the stream managed by this limiter
Add(chunkSize uint64)

// Take removes bytes from the limiter in order to attempt to get
// as close to the limit as it can. It returns the number of
// elements that can be processed at this time. If it returns 0
// it will return the time the caller should wait before trying to
// take more again. If both the number of elements and the duration
// Take removes some number of elements from the limiter in order to
// attempt to get as close to the limit as it can. It returns the
// number of elements that can be processed at this time. If it returns
// 0 elements it may return the duration the caller should wait before
// trying to take more. If both the number of elements and the duration
// return 0 then the limiter is empty
Take() (uint64, time.Duration)

Expand Down

0 comments on commit d364099

Please sign in to comment.