(Connector except)
| 381 | } |
| 382 | |
| 383 | private Connector getRandomConnector(Connector except) { |
| 384 | var notMe = new ArrayList<Connector>(client.getConfig().connectorCount()); |
| 385 | client.getConfig().forEachConnector(c -> { |
| 386 | if (c != except) |
| 387 | notMe.add(c); |
| 388 | }); |
| 389 | return notMe.isEmpty() ? null : notMe.get(Random.getInstance().nextInt(notMe.size())); |
| 390 | } |
| 391 | |
| 392 | private long processLeaderIs(LeaderIs r) throws Exception { |
| 393 | ConnectorProxy leader = this.leader; |
no test coverage detected