mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-05-25 09:03:59 +02:00
Apply suggestions from code review
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
c5360bcdbf
commit
20d0aa499a
@ -149,7 +149,7 @@ impl IndexScheduler {
|
|||||||
|
|
||||||
let index_version = index.get_version(&index_wtxn)?.unwrap_or((1, 12, 0));
|
let index_version = index.get_version(&index_wtxn)?.unwrap_or((1, 12, 0));
|
||||||
let package_version = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
|
let package_version = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
|
||||||
if index_version != (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH) {
|
if index_version != package_version {
|
||||||
return Err(Error::IndexVersionMismatch {
|
return Err(Error::IndexVersionMismatch {
|
||||||
index: index_uid,
|
index: index_uid,
|
||||||
index_version,
|
index_version,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use meilisearch_types::milli::progress::{Progress, VariableNameStep};
|
use meilisearch_types::milli::progress::{Progress, VariableNameStep};
|
||||||
use meilisearch_types::milli::{self};
|
use meilisearch_types::milli;
|
||||||
|
|
||||||
use crate::{Error, IndexScheduler, Result};
|
use crate::{Error, IndexScheduler, Result};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user