From ff3c2bf47c68cf5a8753161fbc15613a1c3a9c4a Mon Sep 17 00:00:00 2001 From: Dmitrii Neeman Date: Thu, 30 Jan 2025 12:36:34 +0200 Subject: [PATCH] rps-metric - return on error --- io/aerospike/xdr/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/aerospike/xdr/metrics.go b/io/aerospike/xdr/metrics.go index 90921f8e..f5a1709f 100644 --- a/io/aerospike/xdr/metrics.go +++ b/io/aerospike/xdr/metrics.go @@ -63,7 +63,7 @@ func (mc *metricsCollector) reportMetrics() { mc.lastTime = t case <-mc.ctx.Done(): - break + return } } }