mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-23 23:24:30 +00:00
Co-authored-by: Martin Holst Swende <martin@swende.se>
This commit is contained in:
parent
aee1bd3083
commit
ccaa69e8e9
1 changed files with 2 additions and 3 deletions
|
|
@ -308,11 +308,11 @@ func (s *Service) loop(chainHeadCh chan core.ChainHeadEvent, txEventCh chan core
|
|||
header.Set("origin", "http://localhost")
|
||||
for _, url := range urls {
|
||||
c, _, e := dialer.Dial(url, header)
|
||||
if e == nil {
|
||||
err = e
|
||||
if err == nil {
|
||||
conn = newConnectionWrapper(c)
|
||||
break
|
||||
}
|
||||
err = e
|
||||
}
|
||||
if err != nil {
|
||||
log.Warn("Stats server unreachable", "err", err)
|
||||
|
|
@ -327,7 +327,6 @@ func (s *Service) loop(chainHeadCh chan core.ChainHeadEvent, txEventCh chan core
|
|||
continue
|
||||
}
|
||||
go s.readLoop(conn)
|
||||
|
||||
// Send the initial stats so our node looks decent from the get go
|
||||
if err = s.report(conn); err != nil {
|
||||
log.Warn("Initial stats report failed", "err", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue