Skip to content

Commit 6e64232

Browse files
committed
drop deprecated validation setting
1 parent 734c2da commit 6e64232

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

modules/metrics/collector.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,10 @@ import (
1111
"code.gitea.io/gitea/modules/setting"
1212

1313
"github.com/prometheus/client_golang/prometheus"
14-
"github.com/prometheus/common/model"
1514
)
1615

1716
const namespace = "gitea_"
1817

19-
func init() {
20-
model.NameValidationScheme = model.UTF8Validation
21-
}
22-
2318
// Collector implements the prometheus.Collector interface and
2419
// exposes gitea metrics for prometheus
2520
type Collector struct {

0 commit comments

Comments
 (0)