mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p: fix linter issue
This commit is contained in:
parent
f5056b68e2
commit
93e6fdf58a
1 changed files with 2 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ func (c *meteredConn) handshakeDone(id enode.ID) {
|
||||||
Type: PeerConnected,
|
Type: PeerConnected,
|
||||||
IP: c.ip,
|
IP: c.ip,
|
||||||
ID: id.String(),
|
ID: id.String(),
|
||||||
Elapsed: time.Now().Sub(c.connected),
|
Elapsed: time.Since(c.connected),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -191,7 +191,7 @@ func (c *meteredConn) Close() error {
|
||||||
metricsFeed.Send(MeteredPeerEvent{
|
metricsFeed.Send(MeteredPeerEvent{
|
||||||
Type: PeerHandshakeFailed,
|
Type: PeerHandshakeFailed,
|
||||||
IP: c.ip,
|
IP: c.ip,
|
||||||
Elapsed: time.Now().Sub(c.connected),
|
Elapsed: time.Since(c.connected),
|
||||||
})
|
})
|
||||||
return c.Conn.Close()
|
return c.Conn.Close()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue