mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
ethstats: overwrite old errors
This commit is contained in:
parent
bfe9c2eba3
commit
3c92222d6c
@ -252,11 +252,11 @@ func (s *Service) loop() {
|
||||
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)
|
||||
@ -271,7 +271,6 @@ func (s *Service) loop() {
|
||||
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 New Issue
Block a user