Skip to content

Commit

Permalink
api: Check style fix for UNAVAILABLE to Status.UNAVAILABLE and Status.OK
Browse files Browse the repository at this point in the history
  • Loading branch information
SreeramdasLavanya committed Oct 21, 2024
1 parent 9ddcb09 commit 596d11d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/src/main/java/io/grpc/LoadBalancer.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,14 @@ public void handleResolvedAddresses(ResolvedAddresses resolvedAddresses) {
* EquivalentAddressGroup} addresses should be considered equivalent but may be flattened into a
* single list if needed.
*
* <p>Implementations can choose to reject the given addresses by returning {@code Status.UNAVAILABLE}.
* <p>Implementations can choose to reject the given addresses by returning
* {@code Status.UNAVAILABLE}.
*
* <p>Implementations should not modify the given {@code resolvedAddresses}.
*
* @param resolvedAddresses the resolved server addresses, attributes, and config.
* @return {@code Status.OK} if the resolved addresses were accepted. {@code Status.UNAVAILABLE} if rejected.
* @return {@code Status.OK} if the resolved addresses were accepted.
* {@code Status.UNAVAILABLE} if rejected.
* @since 1.49.0
*/
public Status acceptResolvedAddresses(ResolvedAddresses resolvedAddresses) {
Expand Down

0 comments on commit 596d11d

Please sign in to comment.