ah shit, forgot to load the metrics after messing around

This commit is contained in:
Lee 2024-04-17 00:59:36 +01:00
parent 7a50dccabd
commit d8d4f32006

@ -86,8 +86,8 @@ public class MetricService {
*/ */
public void loadMetrics() { public void loadMetrics() {
log.info("Loading metrics"); log.info("Loading metrics");
for (Metric<?> metricToLoad : metricsRepository.findAll()) { for (Metric<?> metric : metricsRepository.findAll()) {
metrics.put(metric.getClass(), metric);
} }
log.info("Loaded {} metrics", metrics.size()); log.info("Loaded {} metrics", metrics.size());
} }