Skip to content

Commit

Permalink
feat: update for check node block number
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiotzh committed Jul 26, 2024
1 parent 91789fe commit 55dcbc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timer/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var (
)

func (t *ToolTimer) RunCheckNode() {
tickerNode := time.NewTicker(time.Minute * 5)
tickerNode := time.NewTicker(time.Minute * 15)
t.Wg.Add(1)
go func() {
for {
Expand All @@ -40,7 +40,7 @@ func (t *ToolTimer) doCheckNode() error {
for _, v := range list {
if bn, ok := nodeMap[v.ParserType]; ok {
if v.BlockNumber <= bn {
msg := fmt.Sprintf("ParserType(%d), BlockNumber[%d,%d]", v.ParserType, v.BlockNumber, bn)
msg := fmt.Sprintf("ParserType(%s), ParserBlockNumber[%d]", v.ParserType.ToString(), v.BlockNumber)
notify.SendLarkTextNotify(config.Cfg.Notify.LarkErrorKey, "doCheckNode", msg)
}
}
Expand Down

0 comments on commit 55dcbc0

Please sign in to comment.