Skip to content

Commit

Permalink
correct locking
Browse files Browse the repository at this point in the history
  • Loading branch information
shijiesheng committed Jan 8, 2025
1 parent 9bc9785 commit 14a3af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/worker/concurrency_auto_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ func (c *ConcurrencyAutoScaler) Start() {
case <-c.shutdownChan:
return
case <-ticker.Chan():
c.logEvent(autoScalerEventMetrics)
c.lock.Lock()
c.logEvent(autoScalerEventMetrics)
c.updatePollerPermit()
c.lock.Unlock()
}
Expand Down

0 comments on commit 14a3af2

Please sign in to comment.