aboutsummaryrefslogtreecommitdiffstats
path: root/ethstats
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-30 16:36:02 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-30 16:36:02 +0800
commit0ad32d3be70ca27044b56b5eee9c1b3bd38e2d69 (patch)
treec324d1dab9a762ac7e502844c09f1655baa66e77 /ethstats
parent68b0d30d4ad81cfd656a6063baa034cfd9e36ec9 (diff)
downloaddexon-0ad32d3be70ca27044b56b5eee9c1b3bd38e2d69.tar
dexon-0ad32d3be70ca27044b56b5eee9c1b3bd38e2d69.tar.gz
dexon-0ad32d3be70ca27044b56b5eee9c1b3bd38e2d69.tar.bz2
dexon-0ad32d3be70ca27044b56b5eee9c1b3bd38e2d69.tar.lz
dexon-0ad32d3be70ca27044b56b5eee9c1b3bd38e2d69.tar.xz
dexon-0ad32d3be70ca27044b56b5eee9c1b3bd38e2d69.tar.zst
dexon-0ad32d3be70ca27044b56b5eee9c1b3bd38e2d69.zip
ethstats: fix last golint warning (#16837)
Diffstat (limited to 'ethstats')
-rw-r--r--ethstats/ethstats.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go
index c11601435..a4d35044c 100644
--- a/ethstats/ethstats.go
+++ b/ethstats/ethstats.go
@@ -362,7 +362,7 @@ type nodeInfo struct {
// authMsg is the authentication infos needed to login to a monitoring server.
type authMsg struct {
- Id string `json:"id"`
+ ID string `json:"id"`
Info nodeInfo `json:"info"`
Secret string `json:"secret"`
}
@@ -381,7 +381,7 @@ func (s *Service) login(conn *websocket.Conn) error {
protocol = fmt.Sprintf("les/%d", les.ClientProtocolVersions[0])
}
auth := &authMsg{
- Id: s.node,
+ ID: s.node,
Info: nodeInfo{
Name: s.node,
Node: infos.Name,