From 27e3086cbf249a53af0321056bc7d309bf4d8d55 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Fri, 22 Jul 2022 16:28:25 +0300 Subject: [PATCH] [#600] Return pointer from newStateMetrics Signed-off-by: Denis Kirillov --- cmd/s3-gw/app_healthy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/s3-gw/app_healthy.go b/cmd/s3-gw/app_healthy.go index 6321dc6df..71841faf9 100644 --- a/cmd/s3-gw/app_healthy.go +++ b/cmd/s3-gw/app_healthy.go @@ -22,12 +22,12 @@ func newGateMetrics() *GateMetrics { stateMetric.register() return &GateMetrics{ - stateMetrics: stateMetric, + stateMetrics: *stateMetric, } } -func newStateMetrics() stateMetrics { - return stateMetrics{ +func newStateMetrics() *stateMetrics { + return &stateMetrics{ healthCheck: prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: namespace, Subsystem: stateSubsystem,