modernize + gofumpt
This commit is contained in:
@@ -32,7 +32,6 @@ func (m *Metrics) Registry() *prometheus.Registry {
|
||||
}
|
||||
|
||||
func (m *Metrics) Handler() http.Handler {
|
||||
|
||||
log := logger.NewStdLog("prom http", false, nil)
|
||||
|
||||
return promhttp.HandlerFor(m.r, promhttp.HandlerOpts{
|
||||
@@ -46,7 +45,6 @@ func (m *Metrics) Handler() http.Handler {
|
||||
// the specified port. The server will shutdown and return when
|
||||
// the provided context is done
|
||||
func (m *Metrics) ListenAndServe(ctx context.Context, port int) error {
|
||||
|
||||
log := logger.Setup()
|
||||
|
||||
srv := &http.Server{
|
||||
|
Reference in New Issue
Block a user