summaryrefslogtreecommitdiff
path: root/src/metrics.rs
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-02-07 00:14:52 +0100
committerJesper Jensen <jesper@jnsn.dev>2026-02-07 00:14:52 +0100
commit61aa744d3786c3067beddc9dd54cdd1ff3edd48f (patch)
treec97b9b31616e8ff86b477039e0f231eecaa37ea4 /src/metrics.rs
parent82221f3d4f663720abbc2fff27db47da65ce7425 (diff)
Cache the tag lookups
Diffstat (limited to 'src/metrics.rs')
-rw-r--r--src/metrics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/metrics.rs b/src/metrics.rs
index a6c8286..95a4782 100644
--- a/src/metrics.rs
+++ b/src/metrics.rs
@@ -99,7 +99,7 @@ impl Metrics {
).unwrap();
registry.register(Box::new(db_query_duration.clone())).unwrap();
- Self {
+ return Self {
state,
images_checked,
images_updated,
@@ -111,7 +111,7 @@ impl Metrics {
git_operations,
db_query_duration,
registry,
- }
+ };
}
}