Skip to content

Commit

Permalink
Update ServerSelectionStrategy implementation in AtomixReplica.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuujo committed Jan 15, 2016
1 parent 72934e0 commit fe67c69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/io/atomix/AtomixReplica.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,14 @@ public CompletableFuture<Void> close() {
* Combined server selection strategy.
*/
private static class CombinedSelectionStrategy implements ServerSelectionStrategy {
private final Collection<Address> addresses;
private final List<Address> addresses;

private CombinedSelectionStrategy(Address address) {
this.addresses = Collections.singleton(address);
this.addresses = Collections.singletonList(address);
}

@Override
public Collection<Address> selectConnections(Address leader, List<Address> servers) {
public List<Address> selectConnections(Address leader, List<Address> servers) {
return addresses;
}
}
Expand Down

0 comments on commit fe67c69

Please sign in to comment.