• Juan Batiz-Benet's avatar
    ratelimiter: fixing rate limiter use · 8a93edef
    Juan Batiz-Benet authored
    Use of the ratelimiter should be conscious of the ratelimiter's
    potential closing. any loops that add work to ratelimiter
    should (a) only do so if the rate limiter is not closed,
    or (b) prevent limiter while work is added
    (i.e. use limiter.Go(addWorkHere))
    8a93edef
worker.go 4.26 KB