From 97281db008e9f5597932c542af8ded9f2d822ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurk=C3=B3=20Mih=C3=A1ly?= Date: Tue, 28 May 2019 00:10:02 +0300 Subject: [PATCH] dashboard, p2p: remove println, change doc --- dashboard/dashboard.go | 13 ------------- dashboard/peers.go | 2 -- p2p/metrics.go | 2 +- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/dashboard/dashboard.go b/dashboard/dashboard.go index 2a3db333d0..09e38a9c5f 100644 --- a/dashboard/dashboard.go +++ b/dashboard/dashboard.go @@ -170,19 +170,6 @@ func (db *Dashboard) Start(server *p2p.Server) error { } }() - //s, _ := json.MarshalIndent(server.NodeInfo(), "", " ") - //fmt.Println(string(s)) - switch { - case db.ethServ != nil: - if db.ethServ.IsLesServer() { - // fmt.Printf("%+v\n", db.ethServ) - } - case db.lesServ != nil: - //fmt.Println(db.lesServ.LesVersion()) - default: - log.Error("Neither eth nor les") - } - return nil } diff --git a/dashboard/peers.go b/dashboard/peers.go index ed2402c79c..ee40ae1d93 100644 --- a/dashboard/peers.go +++ b/dashboard/peers.go @@ -501,8 +501,6 @@ func (db *Dashboard) collectPeerData() { Protocols: peer.Protocols, }) } - //s, _ := json.Marshal(info.Protocols) - //fmt.Println(string(s)) } } } diff --git a/p2p/metrics.go b/p2p/metrics.go index 6686e91bef..90e2558467 100644 --- a/p2p/metrics.go +++ b/p2p/metrics.go @@ -61,7 +61,7 @@ const ( PeerHandshakeSucceeded MeteredPeerEventType = iota // PeerHandshakeFailed is the type of event emitted when a peer fails to - // make the encryption handshake or disconnects before it. + // make the handshake or disconnects before it. PeerHandshakeFailed // PeerDisconnected is the type of event emitted when a peer disconnects.