mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
forbid deserialization of Setting<Checked>
This commit is contained in:
parent
3a7c1f2469
commit
d0552e765e
4 changed files with 7 additions and 6 deletions
|
@ -223,7 +223,7 @@ impl IndexController {
|
|||
create: bool,
|
||||
) -> anyhow::Result<UpdateStatus> {
|
||||
let perform_udpate = |uuid| async move {
|
||||
let meta = UpdateMeta::Settings(settings);
|
||||
let meta = UpdateMeta::Settings(settings.into_unchecked());
|
||||
// Nothing so send, drop the sender right away, as not to block the update actor.
|
||||
let (_, receiver) = mpsc::channel(1);
|
||||
self.update_handle.update(meta, receiver, uuid).await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue