Skip to content

Commit

Permalink
Remove unnecessary sleep
Browse files Browse the repository at this point in the history
Co-authored-by: Christer Edvartsen <[email protected]>
  • Loading branch information
jhrv and christeredvartsen committed Dec 9, 2024
1 parent e11c69e commit 85ec3a7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/reconcilers/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ func (m *Manager) syncTeam(ctx context.Context, req ReconcileRequest) {

if !m.inFlight.Set(req.TeamSlug) {
log.Info("already in flight - adding to back of queue")
time.Sleep(10 * time.Second)
if err := m.syncQueue.Add(req); err != nil {
log.WithError(err).Error("failed while re-queueing team that is in flight")
}
Expand Down

0 comments on commit 85ec3a7

Please sign in to comment.