aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-05-08 21:58:19 +0800
committerFelix Lange <fjl@twurst.com>2015-05-08 22:09:55 +0800
commit9c0f36c46dd85f02c6c02cc646714b2576a70f27 (patch)
tree18079073e67a87c4e570d885ffdafb105bec51b8 /p2p/server.go
parent914e57e49bea0617515e1935972c5990a222cd7b (diff)
downloaddexon-9c0f36c46dd85f02c6c02cc646714b2576a70f27.tar.gz
dexon-9c0f36c46dd85f02c6c02cc646714b2576a70f27.tar.zst
dexon-9c0f36c46dd85f02c6c02cc646714b2576a70f27.zip
p2p: use maxDialingConns instead of maxAcceptConns as dial limit
Diffstat (limited to 'p2p/server.go')
-rw-r--r--p2p/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 0598547e4..171798a1d 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -412,7 +412,7 @@ func (srv *Server) dialLoop() {
defer refresh.Stop()
// Limit the number of concurrent dials
- tokens := maxAcceptConns
+ tokens := maxDialingConns
if srv.MaxPendingPeers > 0 {
tokens = srv.MaxPendingPeers
}