From c9b446029fc5e73560a3be966f06453ab33e3e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Lepr=C3=AAtre?= Date: Tue, 18 Oct 2022 18:40:39 +0400 Subject: [PATCH] refactor: use FormatUint instead of converting to int. (#13582) --- x/gov/keeper/msg_server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/gov/keeper/msg_server.go b/x/gov/keeper/msg_server.go index c26344798..5a6eb89ef 100644 --- a/x/gov/keeper/msg_server.go +++ b/x/gov/keeper/msg_server.go @@ -119,7 +119,7 @@ func (k msgServer) Vote(goCtx context.Context, msg *v1.MsgVote) (*v1.MsgVoteResp []string{govtypes.ModuleName, "vote"}, 1, []metrics.Label{ - telemetry.NewLabel("proposal_id", strconv.Itoa(int(msg.ProposalId))), + telemetry.NewLabel("proposal_id", strconv.FormatUint(msg.ProposalId, 10)), }, ) @@ -141,7 +141,7 @@ func (k msgServer) VoteWeighted(goCtx context.Context, msg *v1.MsgVoteWeighted) []string{govtypes.ModuleName, "vote"}, 1, []metrics.Label{ - telemetry.NewLabel("proposal_id", strconv.Itoa(int(msg.ProposalId))), + telemetry.NewLabel("proposal_id", strconv.FormatUint(msg.ProposalId, 10)), }, ) @@ -163,7 +163,7 @@ func (k msgServer) Deposit(goCtx context.Context, msg *v1.MsgDeposit) (*v1.MsgDe []string{govtypes.ModuleName, "deposit"}, 1, []metrics.Label{ - telemetry.NewLabel("proposal_id", strconv.Itoa(int(msg.ProposalId))), + telemetry.NewLabel("proposal_id", strconv.FormatUint(msg.ProposalId, 10)), }, )