good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 48b484c5 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub
Browse files

Merge pull request #21428 from holiman/ethstats_moar

ethstats: overwrite old errors
parents 06125bff 6a53ce29
No related branches found
No related tags found
No related merge requests found
......@@ -256,11 +256,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)
......@@ -275,7 +275,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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment