Skip to content

Commit

Permalink
Fixes a few problems in ClientUriSupplier implementations.
Browse files Browse the repository at this point in the history
  • Loading branch information
spericas committed Sep 26, 2024
1 parent ea12def commit a6c6d0f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import io.helidon.webclient.api.ClientUri;

/**
* Defines the {@code ClientUriSupplier} interface and provides a few basic
* implementations of it.
* Some popular implementations of the {@link io.helidon.webclient.grpc.ClientUriSupplier}
* interface.
*/
public class ClientUriSuppliers {

Expand Down Expand Up @@ -59,7 +59,7 @@ public static OrderedSupplier create(Collection<ClientUri> clientUris) {
}

protected OrderedSupplier(Collection<ClientUri> clientUris) {
this.clientUris = clientUris.iterator();
this.clientUris = List.copyOf(clientUris).iterator();
}

@Override
Expand Down Expand Up @@ -195,7 +195,7 @@ protected RandomSupplier(ClientUri[] clientUris) {

@Override
public boolean hasNext() {
return supplied;
return !supplied;
}

@Override
Expand Down

0 comments on commit a6c6d0f

Please sign in to comment.