This commit is contained in:
Paul Zinselmeyer 2023-11-09 22:45:45 +01:00
parent 2a53b1fd8e
commit 2b41571da0

View file

@ -24,7 +24,7 @@ impl GarbageCollector {
let file_name = entry.file_name(); let file_name = entry.file_name();
let file_name = file_name.to_string_lossy(); let file_name = file_name.to_string_lossy();
if let Some(id) = file_name.strip_suffix(".toml") { 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_total.inc();
metrics metrics
.bin_data_size .bin_data_size