ethstats: fix golint warning #16837 (#1438)

This commit is contained in:
Daniel Liu 2025-09-06 17:16:29 +08:00 committed by GitHub
parent f852b21b44
commit 04f6f697c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -441,7 +441,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"`
}
@ -459,7 +459,7 @@ func (s *Service) login(conn *connWrapper) error {
return errors.New("no eth protocol available")
}
auth := &authMsg{
Id: s.node,
ID: s.node,
Info: nodeInfo{
Name: s.node,
Node: infos.Name,