mirror of https://github.com/status-im/go-waku.git
fix: initial value of lastTimeExecuted
This commit is contained in:
parent
62e1f59d4f
commit
b929aeeb4e
|
@ -24,7 +24,8 @@ func (w *WakuNode) startKeepAlive(t time.Duration) {
|
||||||
ticker := time.NewTicker(t)
|
ticker := time.NewTicker(t)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
||||||
lastTimeExecuted := <-ticker.C
|
lastTimeExecuted := time.Now()
|
||||||
|
|
||||||
sleepDetectionInterval := int64(t) * 3
|
sleepDetectionInterval := int64(t) * 3
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Reference in New Issue