From 4ac7a7b88bb062b90dcd58ed412b14a738a2236e Mon Sep 17 00:00:00 2001 From: Baodi Shi Date: Thu, 16 Jan 2025 11:40:08 +0800 Subject: [PATCH] fix code check (#1711) --- pkg/ctl/subscription/get_message_by_id.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ctl/subscription/get_message_by_id.go b/pkg/ctl/subscription/get_message_by_id.go index f9ad3aed..718e08c9 100644 --- a/pkg/ctl/subscription/get_message_by_id.go +++ b/pkg/ctl/subscription/get_message_by_id.go @@ -31,7 +31,7 @@ import ( type readMessage struct { Properties map[string]string `json:"properties"` - MessageId utils.MessageID `json:"messageId"` + MessageID utils.MessageID `json:"messageId"` Payload []byte `json:"payload"` PayloadAsString string `json:"PayloadString"` } @@ -106,7 +106,7 @@ func doGetMessageByID(vc *cmdutils.VerbCmd, ledgerID int64, entryID int64) error oc := cmdutils.NewOutputContent(). WithObject(&readMessage{ - MessageId: message.GetMessageID(), + MessageID: message.GetMessageID(), Properties: message.GetProperties(), Payload: message.Payload, PayloadAsString: string(message.Payload),