Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed Sep 8, 2023
1 parent 7b189d3 commit acbe35c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/mqtt/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
})
Expand Down
4 changes: 2 additions & 2 deletions components/mqtt/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit acbe35c

Please sign in to comment.