remove double lock

This commit is contained in:
Ahrav Dutta
2024-04-02 12:51:05 -07:00
parent 2e26e5d5d7
commit ac20032635
-2
View File
@@ -854,8 +854,6 @@ func (s *Source) handleRateLimit(errIn error) bool {
defer rateLimitMu.Unlock()
if rateLimitResumeTime.IsZero() || time.Now().After(rateLimitResumeTime) {
rateLimitMu.Lock()
var (
now = time.Now()