Skip to content

Commit 3bf4add

Browse files
authored
Switch list type in LB (#958)
1 parent 29fea1f commit 3bf4add

File tree

1 file changed

+2
-2
lines changed
  • driver/src/main/java/org/neo4j/driver/internal/cluster/loadbalancing

1 file changed

+2
-2
lines changed

driver/src/main/java/org/neo4j/driver/internal/cluster/loadbalancing/LoadBalancer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import io.netty.util.concurrent.EventExecutorGroup;
2222

23-
import java.util.LinkedList;
23+
import java.util.ArrayList;
2424
import java.util.List;
2525
import java.util.concurrent.CompletableFuture;
2626
import java.util.concurrent.CompletionStage;
@@ -187,7 +187,7 @@ private CompletionStage<Connection> acquire( AccessMode mode, RoutingTable routi
187187
{
188188
AddressSet addresses = addressSet( mode, routingTable );
189189
CompletableFuture<Connection> result = new CompletableFuture<>();
190-
List<Throwable> attemptExceptions = new LinkedList<>();
190+
List<Throwable> attemptExceptions = new ArrayList<>();
191191
acquire( mode, routingTable, addresses, result, attemptExceptions );
192192
return result;
193193
}

0 commit comments

Comments
 (0)