fix_: use node context instead of context with timeout for discv5 (#5347)
This commit is contained in:
parent
3bb5c9c815
commit
eb0f907137
|
@ -1841,7 +1841,7 @@ func (w *Waku) restartDiscV5() error {
|
|||
|
||||
if w.node.DiscV5().ErrOnNotRunning() != nil {
|
||||
w.logger.Info("is not started restarting")
|
||||
err := w.node.DiscV5().Start(ctx)
|
||||
err := w.node.DiscV5().Start(w.ctx)
|
||||
if err != nil {
|
||||
w.logger.Error("Could not start DiscV5", zap.Error(err))
|
||||
}
|
||||
|
@ -1855,7 +1855,7 @@ func (w *Waku) restartDiscV5() error {
|
|||
default:
|
||||
}
|
||||
|
||||
err := w.node.DiscV5().Start(ctx)
|
||||
err := w.node.DiscV5().Start(w.ctx)
|
||||
if err != nil {
|
||||
w.logger.Error("Could not start DiscV5", zap.Error(err))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue