Skip to content

Commit

Permalink
kvflowcontrol: fix Stream 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 205fb8e commit c9ffac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,12 @@ func (s Stream) String() string {
}

// SafeFormat implements the redact.SafeFormatter interface.
func (s Stream) SafeFormat(p redact.SafePrinter, verb rune) {
func (s Stream) SafeFormat(p redact.SafePrinter, _ rune) {
tenantSt := s.TenantID.String()
if s.TenantID.IsSystem() {
tenantSt = "1"
}
p.Printf("t%s/s%s", tenantSt, s.StoreID.String())
p.Printf("t%s/s%s", redact.SafeString(tenantSt), s.StoreID)
}

var raftAdmissionMetaKey = ctxutil.RegisterFastValueKey()
Expand Down

0 comments on commit c9ffac1

Please sign in to comment.