In the process of using ratelimit,there's a lock in the source code . can you replace it with atomic? > func (tb *Bucket) TakeAvailable(count int64) int64 { tb.mu.Lock() defer tb.mu.Unlock() return tb.takeAvailable(tb.clock.Now(), count) }
In the process of using ratelimit,there's a lock in the source code . can you replace it with atomic?