forked from TrueCloudLab/frostfs-s3-gw
[#600] Return pointer from newStateMetrics
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
89d240d831
commit
27e3086cbf
1 changed files with 3 additions and 3 deletions
|
@ -22,12 +22,12 @@ func newGateMetrics() *GateMetrics {
|
||||||
stateMetric.register()
|
stateMetric.register()
|
||||||
|
|
||||||
return &GateMetrics{
|
return &GateMetrics{
|
||||||
stateMetrics: stateMetric,
|
stateMetrics: *stateMetric,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func newStateMetrics() stateMetrics {
|
func newStateMetrics() *stateMetrics {
|
||||||
return stateMetrics{
|
return &stateMetrics{
|
||||||
healthCheck: prometheus.NewGauge(prometheus.GaugeOpts{
|
healthCheck: prometheus.NewGauge(prometheus.GaugeOpts{
|
||||||
Namespace: namespace,
|
Namespace: namespace,
|
||||||
Subsystem: stateSubsystem,
|
Subsystem: stateSubsystem,
|
||||||
|
|
Loading…
Reference in a new issue