From 61aa744d3786c3067beddc9dd54cdd1ff3edd48f Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sat, 7 Feb 2026 00:14:52 +0100 Subject: Cache the tag lookups --- src/metrics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/metrics.rs') 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, - } + }; } } -- cgit v1.2.3