fix async
This commit is contained in:
parent
ed0049dc22
commit
dbd9d87434
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user