Apply suggestions from code review

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Louis Dureuil
2025-04-29 16:03:30 +02:00
committed by GitHub
parent c5360bcdbf
commit 20d0aa499a
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ impl IndexScheduler {
let index_version = index.get_version(&index_wtxn)?.unwrap_or((1, 12, 0));
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 {
index: index_uid,
index_version,