Commit a8f7589d authored by w's avatar w

ticker time

parent 22cfb9c7
......@@ -22,7 +22,7 @@ func init() {
var rootCmd = &cobra.Command{
Use: "node-monitor",
Short: "monitor halle chain",
Short: "monitor cmp chain",
Run: func(cmd *cobra.Command, args []string) {
cli, err := NewClient(nodeRpc)
if err != nil {
......
......@@ -112,11 +112,11 @@ func (t *TimerTicker) timeoutRoutine() {
switch count {
case 1:
t.ticker = time.NewTicker(time.Minute)
t.ticker = time.NewTicker(5 * time.Minute)
case 2:
t.ticker = time.NewTicker(35 * time.Minute)
case 3:
t.ticker = time.NewTicker(10 * time.Minute)
case 6:
t.ticker = time.NewTicker(time.Hour)
t.ticker = time.NewTicker(95 * time.Minute)
}
t.Logger.Debug("send msg.", "times", count)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment