From 763e7681b6790f93fe9b841c553adb9582318e86 Mon Sep 17 00:00:00 2001 From: Piotr Macek <4007944+piotrm50@users.noreply.github.com> Date: Thu, 2 Nov 2023 14:56:13 +0100 Subject: [PATCH] Fix node shutdown. --- components/metrics/collector/metric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/metrics/collector/metric.go b/components/metrics/collector/metric.go index 4ea8e0adc..1696b8d80 100644 --- a/components/metrics/collector/metric.go +++ b/components/metrics/collector/metric.go @@ -198,7 +198,7 @@ func (m *Metric) schedulePruning(labelValues []string) { func (m *Metric) shutdown() { if m.pruningExecutor != nil { - m.pruningExecutor.Shutdown() + m.pruningExecutor.Shutdown(timed.CancelPendingElements) } }