From acbe35cc6a053e8a1c03b67cb2d768b1c62e8ba4 Mon Sep 17 00:00:00 2001 From: jkrvivian Date: Fri, 8 Sep 2023 21:09:26 +0800 Subject: [PATCH] Fix typo --- components/mqtt/publish.go | 2 +- components/mqtt/types.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/mqtt/publish.go b/components/mqtt/publish.go index 7d78ae4..f72f1b5 100644 --- a/components/mqtt/publish.go +++ b/components/mqtt/publish.go @@ -58,7 +58,7 @@ func (s *Server) PublishCommitmentOnTopic(topic string, commitment *iotago.Commi } func (s *Server) PublishCommitmentInfoOnTopic(topic string, id iotago.CommitmentID) { - s.PublishOnTopicIfSubscribed(topic, &commitemntInfoPayload{ + s.PublishOnTopicIfSubscribed(topic, &commitmentInfoPayload{ CommitmentID: id.ToHex(), CommitmentIndex: uint64(id.Index()), }) diff --git a/components/mqtt/types.go b/components/mqtt/types.go index 12b7e05..3be0cd6 100644 --- a/components/mqtt/types.go +++ b/components/mqtt/types.go @@ -6,8 +6,8 @@ import ( inx "github.com/iotaledger/inx/go" ) -// commitemntInfoPayload defines the payload of the commitment latest and confirmed topics. -type commitemntInfoPayload struct { +// commitmentInfoPayload defines the payload of the commitment latest and confirmed topics. +type commitmentInfoPayload struct { // The identifier of commitment. CommitmentID string `json:"commitmentId"` // The slot index of the commitment.