Skip to content

Commit

Permalink
set meterMap as volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
padilo authored and jkschneider committed Nov 26, 2017
1 parent 6b3fbcd commit 9be8ccb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected MeterRegistry(Clock clock) {
this.clock = clock;
}

private Map<Id, Meter> meterMap = Collections.emptyMap();
private volatile Map<Id, Meter> meterMap = Collections.emptyMap();
private final List<MeterFilter> filters = new ArrayList<>();

/**
Expand Down

0 comments on commit 9be8ccb

Please sign in to comment.