aboutsummaryrefslogtreecommitdiff
path: root/src/garage
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-20 14:20:58 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-20 14:20:58 +0100
commit182a23cc1207c97922a24182c15e2b228015e8f4 (patch)
tree996b3ef37a4402c00feeb013fc6681778b500d03 /src/garage
parent3cdf69f07924d120c572577495789774535daafe (diff)
downloadgarage-182a23cc1207c97922a24182c15e2b228015e8f4.tar.gz
garage-182a23cc1207c97922a24182c15e2b228015e8f4.zip
[peer-metrics] refactor SystemMetrics to hold a reference to System
Diffstat (limited to 'src/garage')
-rw-r--r--src/garage/server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs
index 51b06b8e..6323f957 100644
--- a/src/garage/server.rs
+++ b/src/garage/server.rs
@@ -162,6 +162,7 @@ pub async fn run_server(config_file: PathBuf, secrets: Secrets) -> Result<(), Er
info!("Netapp exited");
// Drop all references so that stuff can terminate properly
+ garage.system.cleanup();
drop(garage);
// Await for all background tasks to end