Skip to content
Snippets Groups Projects
Commit ffd9816f authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

made the host pool limit the number of contacted nodes if the total number of...

made the host pool limit the number of contacted nodes if the total number of avalbile nodes is less than the number to be initally contacted
parent 9f04b015
Branches
Tags
1 merge request!53Release
......@@ -205,6 +205,9 @@ func (h *HostPool) initialize(startIdx uint32) error {
}
numGatewaysToTry := h.poolParams.MaxPings
numGateways := uint32(len(randomGateways))
if numGatewaysToTry>numGateways{
numGatewaysToTry = numGateways
}
resultList := make([]gatewayDuration, 0, numGatewaysToTry)
// Begin trying gateways
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment