We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 150f98b + 2b79d7e commit 40894d1Copy full SHA for 40894d1
pkg/internal/controller/controller.go
@@ -175,7 +175,9 @@ func (c *Controller) processNextWorkItem() bool {
175
176
// Update metrics after processing each item
177
reconcileStartTS := time.Now()
178
- defer c.updateMetrics(time.Now().Sub(reconcileStartTS))
+ defer func() {
179
+ c.updateMetrics(time.Now().Sub(reconcileStartTS))
180
+ }()
181
182
obj, shutdown := c.Queue.Get()
183
if obj == nil {
0 commit comments