mirror of
https://github.com/status-im/status-go.git
synced 2025-02-20 10:48:36 +00:00
Add delay to refresh cycle with patch
This commit is contained in:
parent
6c6fb4d0b3
commit
bfdf823628
13
_assets/patches/geth/0036-add-delay-to-refresh-cycle.patch
Normal file
13
_assets/patches/geth/0036-add-delay-to-refresh-cycle.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go
|
||||||
|
index d0eae28f..113dabc8 100644
|
||||||
|
--- a/p2p/discv5/net.go
|
||||||
|
+++ b/p2p/discv5/net.go
|
||||||
|
@@ -678,7 +678,7 @@ func (net *Network) refresh(done chan<- struct{}) {
|
||||||
|
}
|
||||||
|
if len(seeds) == 0 {
|
||||||
|
log.Trace("no seed nodes found")
|
||||||
|
- close(done)
|
||||||
|
+ time.AfterFunc(time.Second*10, func() { close(done) })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
for _, n := range seeds {
|
2
vendor/github.com/ethereum/go-ethereum/p2p/discv5/net.go
generated
vendored
2
vendor/github.com/ethereum/go-ethereum/p2p/discv5/net.go
generated
vendored
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user