remove double lock
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user