Skip to content

Commit b52bb31

Browse files
zsfelfoldifjl
authored andcommitted
p2p/discv5: add delay to refresh cycle when no seed nodes are found (#16994)
1 parent b2ddb1f commit b52bb31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎p2p/discv5/net.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ func (net *Network) refresh(done chan<- struct{}) {
678678
}
679679
if len(seeds) == 0 {
680680
log.Trace("no seed nodes found")
681-
close(done)
681+
time.AfterFunc(time.Second*10, func() { close(done) })
682682
return
683683
}
684684
for _, n := range seeds {

0 commit comments

Comments
 (0)