fix_: use node context instead of context with timeout for discv5 (#5347)

This commit is contained in:
richΛrd 2024-06-14 12:05:17 -04:00 committed by GitHub
parent 3bb5c9c815
commit eb0f907137
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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))
}