File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/src/main/java/io/dapr/durabletask Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1180,8 +1180,8 @@ private boolean shouldRetry() {
1180
1180
this .totalRetryTime );
1181
1181
1182
1182
// These must default to true if not provided, so it is possible to use only one of them at a time
1183
- boolean shouldRetryBasedOnPolicy = this .policy == null || this .shouldRetryBasedOnPolicy ();
1184
- boolean shouldRetryBasedOnHandler = this .handler == null || this .handler .handle (retryContext );
1183
+ boolean shouldRetryBasedOnPolicy = this .policy != null ? this .shouldRetryBasedOnPolicy () : true ;
1184
+ boolean shouldRetryBasedOnHandler = this .handler != null ? this .handler .handle (retryContext ) : true ;
1185
1185
1186
1186
if (this .policy != null ) {
1187
1187
logger .info (() -> String .format ("shouldRetryBasedOnPolicy: %s" , shouldRetryBasedOnPolicy ));
You can’t perform that action at this time.
0 commit comments