We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a2fec5 commit 3e2a928Copy full SHA for 3e2a928
p2p/server.go
@@ -360,7 +360,7 @@ func (srv *Server) dialLoop() {
360
case <-refresh.C:
361
// Grab some nodes to connect to if we're not at capacity.
362
srv.lock.RLock()
363
- needpeers := len(srv.peers) < srv.MaxPeers
+ needpeers := len(srv.peers) < srv.MaxPeers/2
364
srv.lock.RUnlock()
365
if needpeers {
366
go func() {
0 commit comments