diff --git a/.changelog/5428.trivial.md b/.changelog/5428.trivial.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/go/worker/compute/executor/committee/node.go b/go/worker/compute/executor/committee/node.go index ca42bdb8363..ce2166eab95 100644 --- a/go/worker/compute/executor/committee/node.go +++ b/go/worker/compute/executor/committee/node.go @@ -830,7 +830,7 @@ func (n *Node) proposeBatch( // Commit I/O and state write logs to storage. storageErr := func() error { start := time.Now() - defer storageCommitLatency.With(n.getMetricLabels()).Observe(time.Since(start).Seconds()) + defer func() { storageCommitLatency.With(n.getMetricLabels()).Observe(time.Since(start).Seconds()) }() ctx, cancel := context.WithCancel(roundCtx) defer cancel()