reformat code at pkg/network/metrics/metrics.go
This commit is contained in:
parent
0a56d3ddbc
commit
2f8b11dabf
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ type PrometheusConfig struct {
|
||||||
func NewMetricsService(cfg PrometheusConfig) *Service {
|
func NewMetricsService(cfg PrometheusConfig) *Service {
|
||||||
return &Service{
|
return &Service{
|
||||||
&http.Server{
|
&http.Server{
|
||||||
Addr: cfg.Address + ":" + cfg.Port,
|
Addr: cfg.Address + ":" + cfg.Port,
|
||||||
Handler: promhttp.Handler(),
|
Handler: promhttp.Handler(),
|
||||||
}, cfg,
|
}, cfg,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue