Skip to content

Commit a051650

Browse files
committed
Add check
Signed-off-by: siri-varma <[email protected]>
1 parent 5b2db59 commit a051650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/main/java/com/microsoft/durabletask/DurableTaskGrpcWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public final class DurableTaskGrpcWorker implements AutoCloseable {
6565
this.sidecarClient = TaskHubSidecarServiceGrpc.newBlockingStub(sidecarGrpcChannel);
6666
this.dataConverter = builder.dataConverter != null ? builder.dataConverter : new JacksonDataConverter();
6767
this.maximumTimerInterval = builder.maximumTimerInterval != null ? builder.maximumTimerInterval : DEFAULT_MAXIMUM_TIMER_INTERVAL;
68-
this.workerPool = builder.executorService;
68+
this.workerPool = builder.executorService != null ? builder.executorService : Executors.newCachedThreadPool();
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)