fix update store lock

This commit is contained in:
mpostma
2021-06-09 16:19:45 +02:00
parent 1a65eed724
commit 2716c1aebb
7 changed files with 163 additions and 70 deletions

View File

@ -43,7 +43,7 @@ impl IndexStore for MapIndexStore {
let mut lock = self.index_store.write().await;
if let Some(index) = lock.get(&uuid) {
return Ok(index.clone())
return Ok(index.clone());
}
let path = self.path.join(format!("index-{}", uuid));
if path.exists() {