We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e9cd4 commit 21bacaeCopy full SHA for 21bacae
interceptors/protovalidate/options.go
@@ -43,6 +43,7 @@ func WithIgnoreMessages(msgs ...protoreflect.MessageType) Option {
43
}
44
45
func (o *options) shouldIgnoreMessage(fqn protoreflect.FullName) bool {
46
+ // Names are sorted in WithIgnoreMessages, so we can use binary search.
47
_, found := slices.BinarySearch(o.ignoreMessages, fqn)
48
return found
49
0 commit comments