Skip to content

Commit 31a9c39

Browse files
authored
Fix race condition in BinaryCheksum (#610)
1 parent 95d4ab4 commit 31a9c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/uber/cadence/common/BinaryChecksum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public final class BinaryChecksum {
2323

2424
private BinaryChecksum() {}
2525

26-
public static String getBinaryChecksum() {
26+
public static synchronized String getBinaryChecksum() {
2727
// TODO: should set the binaryChecksum to some auto generated value if it's empty
2828
return binaryChecksum;
2929
}

0 commit comments

Comments
 (0)