Update module github.com/prometheus/client_model to v0.6.1

This commit is contained in:
Renovate Bot
2024-06-04 20:15:18 +00:00
parent 7f03dbbc14
commit e9b417c311
113 changed files with 12344 additions and 2614 deletions

View File

@@ -17,7 +17,7 @@ import (
// EnforceUTF8 reports whether to enforce strict UTF-8 validation.
func EnforceUTF8(fd protoreflect.FieldDescriptor) bool {
if flags.ProtoLegacy {
if flags.ProtoLegacy || fd.Syntax() == protoreflect.Editions {
if fd, ok := fd.(interface{ EnforceUTF8() bool }); ok {
return fd.EnforceUTF8()
}