Skip to content

Commit 14a3af2

Browse files
committed
correct locking
1 parent 9bc9785 commit 14a3af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/worker/concurrency_auto_scaler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ func (c *ConcurrencyAutoScaler) Start() {
130130
case <-c.shutdownChan:
131131
return
132132
case <-ticker.Chan():
133-
c.logEvent(autoScalerEventMetrics)
134133
c.lock.Lock()
134+
c.logEvent(autoScalerEventMetrics)
135135
c.updatePollerPermit()
136136
c.lock.Unlock()
137137
}

0 commit comments

Comments
 (0)