Skip to content

Commit fd1fe64

Browse files
author
Matthew Hayter
committed
Close the metric.
1 parent 60d5a9e commit fd1fe64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/arpnetworking/clusteraggregator/ClusterStatusCache.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public void onReceive(final Object message) throws Exception {
118118
} else {
119119
metrics.setGauge("akka/is_leader", 0);
120120
}
121+
metrics.close();
121122
} else if (message instanceof GetRequest) {
122123
sendResponse(getSender());
123124
} else if (message instanceof ParallelLeastShardAllocationStrategy.RebalanceNotification) {

0 commit comments

Comments
 (0)