fix: bug again
@@ -502,14 +502,11 @@ abstract class ManagedNetwork<
var returnNodes = new HashMap<KeyT, ManagedNodeT>(count);
- var revisedCount = Math.min(count, network.size());
-
- for (var i = 0; i < revisedCount; /* do not increment i here */ ) {
+ for (var i = 0; i < count; i++ ) {
var node = getNode(null);
if (!returnNodes.containsKey(node.getKey())) {
returnNodes.put(node.getKey(), node);
- i++;
}
}
