Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:go-park-mail-ru/2023_2_Hamster i…
Browse files Browse the repository at this point in the history
…nto deploy
  • Loading branch information
DmitriyKomarovCoder committed Nov 26, 2023
2 parents 06a3b64 + 72928fa commit 971b72a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/middleware/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package middleware

import (
"fmt"
"math/rand"
"net/http"
"regexp"
"time"
Expand Down Expand Up @@ -131,7 +130,7 @@ func (m *MetricsMiddleware) Register(name string) {
m.durationNew = s

m.errors = errs
rand.Seed(time.Now().Unix())

prometheus.MustRegister(m.metric)
prometheus.MustRegister(m.counter)
prometheus.MustRegister(m.durations)
Expand Down

0 comments on commit 971b72a

Please sign in to comment.