Skip to content

Commit 3697fd0

Browse files
committed
Get AcceptedConnectionsLimit from the configuration
1 parent facefec commit 3697fd0

File tree

1 file changed

+1
-6
lines changed
  • cardano-node/src/Cardano/Node

1 file changed

+1
-6
lines changed

cardano-node/src/Cardano/Node/Run.hs

+1-6
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,7 @@ handleSimpleNode runP p2pMode tracers nc onKernel = do
375375
Just (ActualSocket localSocket) -> Just (Left localSocket)
376376
Just (SocketInfo localAddr) -> Just (Right localAddr)
377377
Nothing -> Nothing
378-
, Diffusion.daAcceptedConnectionsLimit =
379-
AcceptedConnectionsLimit
380-
{ acceptedConnectionsHardLimit = 512
381-
, acceptedConnectionsSoftLimit = 384
382-
, acceptedConnectionsDelay = 5
383-
}
378+
, Diffusion.daAcceptedConnectionsLimit = ncAcceptedConnectionsLimit nc
384379
, Diffusion.daMode = ncDiffusionMode nc
385380
}
386381

0 commit comments

Comments
 (0)