forked from TrueCloudLab/frostfs-http-gw
[#175] Return pointer from newStateMetrics
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
cf018c2fab
commit
f46ee45843
1 changed files with 3 additions and 3 deletions
|
@ -27,12 +27,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,
|
||||
|
|
Loading…
Reference in a new issue