mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
Typo fix. should be Heartbeat and not Hearthbeat
This commit is contained in:
parent
967de3260f
commit
b221b0415a
3 changed files with 4 additions and 4 deletions
|
|
@ -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"`
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
| -------------------------- | -------- | ------------------------------------------- |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue