File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
temporal-serviceclient/src/main/java/io/temporal/internal/retryer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ class GrpcRetryerUtils {
29
29
@ Nonnull StatusRuntimeException currentException ,
30
30
@ Nonnull RpcRetryOptions options ,
31
31
GetSystemInfoResponse .Capabilities serverCapabilities ) {
32
- Status status = currentException .getStatus ();
32
+ Status . Code code = currentException .getStatus (). getCode ();
33
33
34
- switch (status . getCode () ) {
34
+ switch (code ) {
35
35
// CANCELLED and DEADLINE_EXCEEDED usually considered non-retryable in GRPC world, for
36
36
// example:
37
37
// https://github.com/grpc-ecosystem/go-grpc-middleware/blob/master/retry/retry.go#L287
@@ -65,7 +65,7 @@ class GrpcRetryerUtils {
65
65
break ;
66
66
default :
67
67
for (RpcRetryOptions .DoNotRetryItem pair : options .getDoNotRetry ()) {
68
- if (pair .getCode () == status . getCode ()
68
+ if (pair .getCode () == code
69
69
&& (pair .getDetailsClass () == null
70
70
|| StatusUtils .hasFailure (currentException , pair .getDetailsClass ()))) {
71
71
return currentException ;
You can’t perform that action at this time.
0 commit comments