Skip to content

Commit bcb9ad8

Browse files
committed
Merge pull request spring-projects#3416 from izeye/typo-20150705
* pr/3416: Fix typo
2 parents b81c639 + 99cd9bd commit bcb9ad8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ else if (name.startsWith("timer")) {
9494
else {
9595
final double gauge = value.getValue().doubleValue();
9696
// Ensure we synchronize to avoid another thread pre-empting this thread after
97-
// remove causing an error in CodaHale metrics
98-
// NOTE: CodaHale provides no way to do this atomically
99-
synchronized (getGuageLock(name)) {
97+
// remove causing an error in Dropwizard Metrics
98+
// NOTE: Dropwizard Metrics provides no way to do this atomically
99+
synchronized (getGaugeLock(name)) {
100100
this.registry.remove(name);
101101
this.registry.register(name, new SimpleGauge(gauge));
102102
}
103103
}
104104
}
105105

106-
private Object getGuageLock(String name) {
106+
private Object getGaugeLock(String name) {
107107
Object lock = this.gaugeLocks.get(name);
108108
if (lock == null) {
109109
Object newLock = new Object();

0 commit comments

Comments
 (0)