mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
create update handler trait
fix type inference error
This commit is contained in:
parent
5039528b56
commit
49a016b53d
3 changed files with 23 additions and 10 deletions
|
@ -306,7 +306,8 @@ async fn main() -> anyhow::Result<()> {
|
|||
let update_store = UpdateStore::open(
|
||||
update_store_options,
|
||||
update_store_path,
|
||||
move |update_id, meta, content| {
|
||||
// the type hint is necessary: https://github.com/rust-lang/rust/issues/32600
|
||||
move |update_id, meta, content:&_| {
|
||||
// We prepare the update by using the update builder.
|
||||
let mut update_builder = UpdateBuilder::new();
|
||||
if let Some(max_nb_chunks) = indexer_opt_cloned.max_nb_chunks {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue