Parcourir la source

p2p: use maxDialingConns instead of maxAcceptConns as dial limit

Felix Lange il y a 10 ans
Parent
commit
9c0f36c46d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      p2p/server.go

+ 1 - 1
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
 	}