wait on invalidating

This commit is contained in:
Bryan Stitt 2022-10-10 05:44:04 +00:00
parent 825370b5d9
commit da2bd0b0a5

View File

@ -128,8 +128,10 @@ impl StatEmitter {
}
// shutting down. force a save
// TODO: this is handled by a background thread! we need to make sure the thread survives long enough to do its work!
aggregated_proxy_responses.invalidate_all();
// we do not use invalidate_all because that is done on a background thread
for (key, _) in aggregated_proxy_responses.into_iter() {
aggregated_proxy_responses.invalidate(&key).await;
}
info!("stat aggregator exited");