Procházet zdrojové kódy

p2p: use maxDialingConns instead of maxAcceptConns as dial limit

Felix Lange před 10 roky
rodič
revize
9c0f36c46d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
 	}