Commit 9c0f36c4 authored by Felix Lange's avatar Felix Lange

p2p: use maxDialingConns instead of maxAcceptConns as dial limit

parent 914e57e4
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment