From dbd9d874345f79bfab12b0231ac04ddfa52353f8 Mon Sep 17 00:00:00 2001 From: John Smith Date: Fri, 4 Nov 2022 19:39:02 -0400 Subject: [PATCH] fix async --- veilid-core/src/routing_table/route_spec_store.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/veilid-core/src/routing_table/route_spec_store.rs b/veilid-core/src/routing_table/route_spec_store.rs index 5c2344eb..7cf45488 100644 --- a/veilid-core/src/routing_table/route_spec_store.rs +++ b/veilid-core/src/routing_table/route_spec_store.rs @@ -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 }