Explorar o código

p2p: use maxDialingConns instead of maxAcceptConns as dial limit

Felix Lange %!s(int64=10) %!d(string=hai) anos
pai
achega
9c0f36c46d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}