diff --git a/api/message/types.go b/api/message/types.go index a12ccb1..399cca6 100644 --- a/api/message/types.go +++ b/api/message/types.go @@ -1,6 +1,6 @@ package message -type HearthBeat struct { +type HeartBeat struct { BlockNum uint32 `json:"blocknum"` HeadBlockNum uint32 `json:"head_blocknum"` LastIrreversibleBlockNum uint32 `json:"last_irreversible_blocknum"` diff --git a/app/ship_processor.go b/app/ship_processor.go index 2229594..061f3f5 100644 --- a/app/ship_processor.go +++ b/app/ship_processor.go @@ -71,7 +71,7 @@ func (processor *ShipProcessor) processBlock(block *ship.GetBlocksResultV0) { } if block.ThisBlock.BlockNum%10 == 0 { - hb := message.HearthBeat{ + hb := message.HeartBeat{ BlockNum: block.ThisBlock.BlockNum, LastIrreversibleBlockNum: block.LastIrreversible.BlockNum, HeadBlockNum: block.Head.BlockNum, diff --git a/docs/messages.md b/docs/messages.md index e467fa2..13dedcd 100644 --- a/docs/messages.md +++ b/docs/messages.md @@ -8,9 +8,9 @@ All messages are encoded in `json` format ## Types -### HearthBeat +### HeartBeat -Heartbeat messages are posted to the hearthbeat channel periodically. +Heartbeat messages are posted to the heartbeat channel periodically. | Field | Datatype | Description | | -------------------------- | -------- | ------------------------------------------- |