Skip to content

Commit e34a7f9

Browse files
author
Sophia Tevosyan
committed
copilot comments
1 parent ae5d802 commit e34a7f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
public final class DurableTaskGrpcClientFactory {
1010
private static final ConcurrentMap<Integer, DurableTaskGrpcClient> portToClientMap = new ConcurrentHashMap<>();
1111

12+
// Private to prevent instantiation and enforce a singleton pattern
13+
private DurableTaskGrpcClientFactory() {
14+
}
15+
1216
public static DurableTaskClient getClient(int port, String defaultVersion) {
1317
return portToClientMap.computeIfAbsent(port, DurableTaskGrpcClient::new);
1418
}

0 commit comments

Comments
 (0)