Skip to content

Commit

Permalink
kvflowcontrol: fix ModeT type redaction
Browse files Browse the repository at this point in the history
Epic: none
Release note: none
  • Loading branch information
pav-kv committed Dec 19, 2024
1 parent a4e0bda commit 24e0c7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ func (m ModeT) String() string {
}

// SafeFormat implements the redact.SafeFormatter interface.
func (m ModeT) SafeFormat(p redact.SafePrinter, verb rune) {
func (m ModeT) SafeFormat(p redact.SafePrinter, _ rune) {
if s, ok := modeDict[m]; ok {
p.Print(s)
p.SafeString(redact.SafeString(s))
return
}
p.Print("unknown-mode")
p.SafeString("unknown-mode")
}

// RegularTokensPerStream determines the flow tokens available for regular work
Expand Down

0 comments on commit 24e0c7a

Please sign in to comment.