Skip to content

Commit

Permalink
kvflowcontrolpb: fix admitted vector redaction
Browse files Browse the repository at this point in the history
Strings are redactable by default. Remove the String() invocation so
that the Admitted field is printed using its SafeFormat method and
marked as safe.

Epic: none
Release note: none
  • Loading branch information
pav-kv committed Dec 19, 2024
1 parent 9cb9ca8 commit 6febaab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ func (a PiggybackedAdmittedState) String() string {

func (a PiggybackedAdmittedState) SafeFormat(w redact.SafePrinter, _ rune) {
w.Printf("[r%s,s%s,%d->%d] %s",
a.RangeID, a.ToStoreID, a.FromReplicaID, a.ToReplicaID, a.Admitted.String())
a.RangeID, a.ToStoreID, a.FromReplicaID, a.ToReplicaID, a.Admitted)
}

0 comments on commit 6febaab

Please sign in to comment.