diff --git a/waku/v2/node/wakunode2.go b/waku/v2/node/wakunode2.go index d111737e..d5ba5462 100644 --- a/waku/v2/node/wakunode2.go +++ b/waku/v2/node/wakunode2.go @@ -433,8 +433,8 @@ func (w *WakuNode) startStore() { if w.opts.shouldResume { // TODO: extract this to a function and run it when you go offline // TODO: determine if a store is listening to a topic + w.wg.Add(1) go func() { - w.wg.Add(1) defer w.wg.Done() ticker := time.NewTicker(time.Second)