diff options
author | Felix Lange <fjl@twurst.com> | 2015-05-08 21:58:19 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-05-08 22:09:55 +0800 |
commit | 9c0f36c46dd85f02c6c02cc646714b2576a70f27 (patch) | |
tree | 18079073e67a87c4e570d885ffdafb105bec51b8 /p2p/server.go | |
parent | 914e57e49bea0617515e1935972c5990a222cd7b (diff) | |
download | go-tangerine-9c0f36c46dd85f02c6c02cc646714b2576a70f27.tar go-tangerine-9c0f36c46dd85f02c6c02cc646714b2576a70f27.tar.gz go-tangerine-9c0f36c46dd85f02c6c02cc646714b2576a70f27.tar.bz2 go-tangerine-9c0f36c46dd85f02c6c02cc646714b2576a70f27.tar.lz go-tangerine-9c0f36c46dd85f02c6c02cc646714b2576a70f27.tar.xz go-tangerine-9c0f36c46dd85f02c6c02cc646714b2576a70f27.tar.zst go-tangerine-9c0f36c46dd85f02c6c02cc646714b2576a70f27.zip |
p2p: use maxDialingConns instead of maxAcceptConns as dial limit
Diffstat (limited to 'p2p/server.go')
-rw-r--r-- | p2p/server.go | 2 |
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 } |