0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-16 11:03:04 +02:00

drop deprecated validation setting

This commit is contained in:
TheFox0x7 2025-07-07 00:42:44 +02:00
parent 734c2da3ac
commit 6e64232f42
No known key found for this signature in database
GPG Key ID: 6CA33903484AF7C2

View File

@ -11,15 +11,10 @@ import (
"code.gitea.io/gitea/modules/setting"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
)
const namespace = "gitea_"
func init() {
model.NameValidationScheme = model.UTF8Validation
}
// Collector implements the prometheus.Collector interface and
// exposes gitea metrics for prometheus
type Collector struct {