Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed May 15, 2024
1 parent e259832 commit 103be36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ratelimit/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (cr *ConcurrentRunner) RunTask(ctx context.Context, name string, f func(con
for _, opt := range opts {
opt(task)
}

cr.processPendingTasks()
cr.pendingMu.Lock()
defer func() {
cr.pendingMu.Unlock()
Expand Down

0 comments on commit 103be36

Please sign in to comment.