mirror of https://github.com/grpc/grpc-java.git
xds: fix bug of return resolution error twice in xDS resolver (#6671)
This commit is contained in:
parent
255e5feb24
commit
043ab93b3b
|
|
@ -178,8 +178,9 @@ final class XdsNameResolver extends NameResolver {
|
|||
// a temporary solution. More design discussion needs to be done.
|
||||
if (error.getCode().equals(Code.NOT_FOUND)) {
|
||||
listener.onResult(ResolutionResult.newBuilder().build());
|
||||
return;
|
||||
}
|
||||
listener.onError(error);
|
||||
listener.onError(Status.UNAVAILABLE.withDescription(error.getDescription()));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue