aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/dial.go
diff options
context:
space:
mode:
authorKurkó Mihály <kurkomisi@users.noreply.github.com>2018-10-16 06:40:51 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-10-16 06:40:51 +0800
commit16e4d0e0055f7fce620ff6881a1393d955c06cee (patch)
treec612d19c404de92d63b09bf395a18b11b74cb389 /p2p/dial.go
parent331fa6d3075cb89fc295b36d9039620ec1d741ad (diff)
downloaddexon-16e4d0e0055f7fce620ff6881a1393d955c06cee.tar.gz
dexon-16e4d0e0055f7fce620ff6881a1393d955c06cee.tar.zst
dexon-16e4d0e0055f7fce620ff6881a1393d955c06cee.zip
p2p: meter peer traffic, emit metered peer events (#17695)
This change extends the peer metrics collection: - traces the life-cycle of the peers - meters the peer traffic separately for every peer - creates event feed for the peer events - emits the peer events
Diffstat (limited to 'p2p/dial.go')
-rw-r--r--p2p/dial.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/dial.go b/p2p/dial.go
index d228514fc..075a0f936 100644
--- a/p2p/dial.go
+++ b/p2p/dial.go
@@ -350,7 +350,7 @@ func (t *dialTask) dial(srv *Server, dest *enode.Node) error {
if err != nil {
return &dialError{err}
}
- mfd := newMeteredConn(fd, false)
+ mfd := newMeteredConn(fd, false, dest.IP())
return srv.SetupConn(mfd, t.flags, dest)
}