Skip to content

Commit 7e7bc0a

Browse files
committed
chore: New API check_state_compatibility
Signed-off-by: Anush008 <[email protected]>
1 parent 61aa6d0 commit 7e7bc0a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/ops/storages/qdrant.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ impl StorageFactoryBase for Arc<Factory> {
375375
fn build(
376376
self: Arc<Self>,
377377
_name: String,
378-
_target_id: i32,
379378
spec: Spec,
380379
key_fields_schema: Vec<FieldSchema>,
381380
value_fields_schema: Vec<FieldSchema>,
@@ -418,13 +417,11 @@ impl StorageFactoryBase for Arc<Factory> {
418417
Ok(SetupStatusCheck::new(key, desired))
419418
}
420419

421-
fn will_keep_all_existing_data(
420+
fn check_state_compatibility(
422421
&self,
423-
_name: &str,
424-
_target_id: i32,
425422
_desired: &SetupState,
426423
_existing: &SetupState,
427-
) -> Result<bool> {
428-
Ok(true)
424+
) -> Result<SetupStateCompatibility> {
425+
Ok(SetupStateCompatibility::Compatible)
429426
}
430427
}

0 commit comments

Comments
 (0)