Skip to content

Commit

Permalink
Add volatile keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocnhan-tran1996 committed Oct 20, 2024
1 parent 2408622 commit ff3b9a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class RabbitStreamTemplate implements RabbitStreamOperations, Application

private boolean streamConverterSet;

private Producer producer;
private volatile Producer producer;

private String beanName;

Expand Down

0 comments on commit ff3b9a5

Please sign in to comment.