fix async

This commit is contained in:
John Smith 2022-11-04 19:39:02 -04:00
parent ed0049dc22
commit dbd9d87434

View File

@ -339,9 +339,11 @@ impl RouteSpecStore {
/// Purge the route spec store
pub async fn purge(&self) -> EyreResult<()> {
let inner = &mut *self.inner.lock();
inner.content = Default::default();
inner.cache = Default::default();
{
let inner = &mut *self.inner.lock();
inner.content = Default::default();
inner.cache = Default::default();
}
self.save().await
}