Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
48b484c5
Unverified
Commit
48b484c5
authored
Aug 07, 2020
by
Péter Szilágyi
Committed by
GitHub
Aug 07, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21428 from holiman/ethstats_moar
ethstats: overwrite old errors
parents
06125bff
6a53ce29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ethstats.go
ethstats/ethstats.go
+2
-3
No files found.
ethstats/ethstats.go
View file @
48b484c5
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment