Skip to content

Commit

Permalink
Add removed synchronized keyword
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Apr 12, 2022
1 parent 8d4f6ae commit 7ef88ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public TestAuditlogImpl(String name, Settings settings, String settingsPrefix, A
super(name, settings, null, fallbackSink);
}

public boolean doStore(AuditMessage msg) {
public synchronized boolean doStore(AuditMessage msg) {
if (messagesRef.get() == null || countDownRef.get() == null) {
throw new RuntimeException("No message latch is waiting");
}
Expand Down

0 comments on commit 7ef88ff

Please sign in to comment.