reformat code at pkg/network/metrics/metrics.go

This commit is contained in:
Evgeniy Kulikov 2019-11-15 21:10:27 +03:00
parent 0a56d3ddbc
commit 2f8b11dabf
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2

View file

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