mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-03 12:16:22 -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
|
/// Purge the route spec store
|
||||||
pub async fn purge(&self) -> EyreResult<()> {
|
pub async fn purge(&self) -> EyreResult<()> {
|
||||||
|
{
|
||||||
let inner = &mut *self.inner.lock();
|
let inner = &mut *self.inner.lock();
|
||||||
inner.content = Default::default();
|
inner.content = Default::default();
|
||||||
inner.cache = Default::default();
|
inner.cache = Default::default();
|
||||||
|
}
|
||||||
self.save().await
|
self.save().await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue