fixing search indexing2
This commit is contained in:
@@ -160,6 +160,14 @@ impl SearcherService {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn invalidate_profile(&self, profile_name: &str) -> Result<(), Status> {
|
||||
self.profiles
|
||||
.lock()
|
||||
.map_err(|_| Status::internal("Profile index cache lock poisoned"))?
|
||||
.remove(profile_name);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn run_rpc(
|
||||
&self,
|
||||
request: Request<SearchRequest>,
|
||||
|
||||
Reference in New Issue
Block a user