mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-30 02:08:42 -04:00
fix async
This commit is contained in:
parent
ed0049dc22
commit
dbd9d87434
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue