OSDN Git Service

fk
authorHAOYUatHZ <haoyu@protonmail.com>
Mon, 19 Aug 2019 07:42:08 +0000 (15:42 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Mon, 19 Aug 2019 07:42:08 +0000 (15:42 +0800)
toolbar/precog/monitor/connection.go

index 5d067e9..366cbd8 100644 (file)
@@ -11,7 +11,7 @@ import (
 
 func (m *monitor) connectNodesRoutine() {
        // TODO: change name?
-       ticker := time.NewTicker(time.Duration(m.cfg.CheckFreqSeconds) * time.Second)
+       ticker := time.NewTicker(time.Duration(m.cfg.CheckFreqSeconds*2) * time.Second)
        for ; true; <-ticker.C {
                if err := m.dialNodes(); err != nil {
                        log.Error(err)