Skip to content

Commit

Permalink
lxc/network_peer: avoid fmt.Sprintf() as it is slow
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jan 31, 2025
1 parent 009780d commit 4707e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxc/network_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (c *cmdNetworkPeerList) run(cmd *cobra.Command, args []string) error {
targetPeer := "Unknown"

if peer.TargetProject != "" && peer.TargetNetwork != "" {
targetPeer = fmt.Sprintf("%s/%s", peer.TargetProject, peer.TargetNetwork)
targetPeer = peer.TargetProject + "/" + peer.TargetNetwork
}

details := []string{
Expand Down

0 comments on commit 4707e81

Please sign in to comment.