wait on invalidating
This commit is contained in:
parent
825370b5d9
commit
da2bd0b0a5
@ -128,8 +128,10 @@ impl StatEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// shutting down. force a save
|
// 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!
|
// we do not use invalidate_all because that is done on a background thread
|
||||||
aggregated_proxy_responses.invalidate_all();
|
for (key, _) in aggregated_proxy_responses.into_iter() {
|
||||||
|
aggregated_proxy_responses.invalidate(&key).await;
|
||||||
|
}
|
||||||
|
|
||||||
info!("stat aggregator exited");
|
info!("stat aggregator exited");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user