[#600] Return pointer from newStateMetrics

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-07-22 16:28:25 +03:00 committed by Alex Vanin
parent 89d240d831
commit 27e3086cbf

View file

@ -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,