Skip to content

Commit 9c0f36c

Browse files
committed
p2p: use maxDialingConns instead of maxAcceptConns as dial limit
1 parent 914e57e commit 9c0f36c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ func (srv *Server) dialLoop() {
412412
defer refresh.Stop()
413413

414414
// Limit the number of concurrent dials
415-
tokens := maxAcceptConns
415+
tokens := maxDialingConns
416416
if srv.MaxPendingPeers > 0 {
417417
tokens = srv.MaxPendingPeers
418418
}

0 commit comments

Comments
 (0)