good morning!!!!

Skip to content
Snippets Groups Projects
Commit b52bb31b authored by Zsolt Felföldi's avatar Zsolt Felföldi Committed by Felix Lange
Browse files

p2p/discv5: add delay to refresh cycle when no seed nodes are found (#16994)

parent b2ddb1fc
Branches
Tags
No related merge requests found
...@@ -678,7 +678,7 @@ func (net *Network) refresh(done chan<- struct{}) { ...@@ -678,7 +678,7 @@ func (net *Network) refresh(done chan<- struct{}) {
} }
if len(seeds) == 0 { if len(seeds) == 0 {
log.Trace("no seed nodes found") log.Trace("no seed nodes found")
close(done) time.AfterFunc(time.Second*10, func() { close(done) })
return return
} }
for _, n := range seeds { for _, n := range seeds {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment