From 24e0c7aae0465a4eab8986c36d7448727a7010ba Mon Sep 17 00:00:00 2001 From: Pavel Kalinnikov Date: Wed, 18 Dec 2024 18:30:19 +0000 Subject: [PATCH] kvflowcontrol: fix ModeT type redaction Epic: none Release note: none --- pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go b/pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go index 5ffeff60d646..94c9b7eeedc0 100644 --- a/pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go +++ b/pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go @@ -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