mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Remove unused result response on indexes_uids function
This commit is contained in:
parent
e22debb994
commit
a0caf0d6d7
@ -251,9 +251,9 @@ impl Database {
|
|||||||
self.env.copy_to_path(path, CompactionOption::Enabled)
|
self.env.copy_to_path(path, CompactionOption::Enabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn indexes_uids(&self) -> MResult<Vec<String>> {
|
pub fn indexes_uids(&self) -> Vec<String> {
|
||||||
let indexes = self.indexes.read().unwrap();
|
let indexes = self.indexes.read().unwrap();
|
||||||
Ok(indexes.keys().cloned().collect())
|
indexes.keys().cloned().collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn common_store(&self) -> heed::PolyDatabase {
|
pub fn common_store(&self) -> heed::PolyDatabase {
|
||||||
|
@ -32,8 +32,7 @@ pub async fn list_indexes(ctx: Context<Data>) -> SResult<Response> {
|
|||||||
let indexes_uids = ctx
|
let indexes_uids = ctx
|
||||||
.state()
|
.state()
|
||||||
.db
|
.db
|
||||||
.indexes_uids()
|
.indexes_uids();
|
||||||
.map_err(ResponseError::internal)?;
|
|
||||||
|
|
||||||
let env = &ctx.state().db.env;
|
let env = &ctx.state().db.env;
|
||||||
let mut reader = env.read_txn().map_err(ResponseError::internal)?;
|
let mut reader = env.read_txn().map_err(ResponseError::internal)?;
|
||||||
|
@ -159,7 +159,6 @@ pub async fn search_multi_index(mut ctx: Context<Data>) -> SResult<Response> {
|
|||||||
.state()
|
.state()
|
||||||
.db
|
.db
|
||||||
.indexes_uids()
|
.indexes_uids()
|
||||||
.map_err(ResponseError::internal)?
|
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.collect();
|
.collect();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user