MCPcopy Create free account
hub / github.com/cortexproject/cortex / addToHash

Function addToHash

pkg/util/validation/limits.go:525–531  ·  view source on GitHub ↗
(h *xxhash.Digest, regex string)

Source from the content-addressed store, hash-verified

523}
524
525func addToHash(h *xxhash.Digest, regex string) {
526 if regex == "" {
527 return
528 }
529 _, _ = h.WriteString(regex)
530 _, _ = h.Write([]byte{'\xff'})
531}
532
533func (l *Limits) compileQueryAttributeRegex() error {
534 if !l.QueryPriority.Enabled && !l.QueryRejection.Enabled {

Callers 1

Calls 2

WriteStringMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected