Skip to content

Commit

Permalink
remove expensive sprintf in configs updated (istio#54555)
Browse files Browse the repository at this point in the history
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
  • Loading branch information
ramaraochavali authored Jan 6, 2025
1 parent 8c70004 commit 752d717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilot/pkg/xds/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func configsUpdated(req *model.PushRequest) string {
break
}
if len(req.ConfigsUpdated) > 1 {
more := fmt.Sprintf(" and %d more configs", len(req.ConfigsUpdated)-1)
more := " and " + strconv.Itoa(len(req.ConfigsUpdated)-1) + " more configs"
configs += more
}
return configs
Expand Down

0 comments on commit 752d717

Please sign in to comment.