From 2b41571da0e7bfb9cd7c8327deca43404e2b77df Mon Sep 17 00:00:00 2001 From: Paul Z Date: Thu, 9 Nov 2023 22:45:45 +0100 Subject: [PATCH] gc fix --- server/src/garbage_collector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/garbage_collector.rs b/server/src/garbage_collector.rs index 9248ff2..a13b6f7 100644 --- a/server/src/garbage_collector.rs +++ b/server/src/garbage_collector.rs @@ -24,7 +24,7 @@ impl GarbageCollector { let file_name = entry.file_name(); let file_name = file_name.to_string_lossy(); if let Some(id) = file_name.strip_suffix(".toml") { - if let Ok(metadata) = Metadata::from_file(&format!("./data/{}.toml", id)).await { + if let Ok(metadata) = Metadata::from_file(&format!("{}/{}.toml", path, id)).await { metrics.bin_total.inc(); metrics .bin_data_size