mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-08 08:53:12 +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