From ac200326353e7a3f7f473663e96e430fcc381a92 Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Tue, 2 Apr 2024 12:51:05 -0700 Subject: [PATCH] remove double lock --- pkg/sources/github/github.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.go index 335110d71..cd6023e91 100644 --- a/pkg/sources/github/github.go +++ b/pkg/sources/github/github.go @@ -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()