mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-14 15:54:20 +00:00
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)
|
||||
defer ticker.Stop()
|
||||
|
||||
lastTimeExecuted := <-ticker.C
|
||||
lastTimeExecuted := time.Now()
|
||||
|
||||
sleepDetectionInterval := int64(t) * 3
|
||||
|
||||
for {
|
||||
|
Loading…
x
Reference in New Issue
Block a user