@@ -282,12 +282,9 @@ impl Display for CollectionId {
282
282
}
283
283
}
284
284
285
- #[ derive( Debug , Clone , Serialize , Deserialize ) ]
286
- pub struct SetupState { }
287
-
288
285
impl StorageFactoryBase for Arc < Factory > {
289
286
type Spec = Spec ;
290
- type SetupState = SetupState ;
287
+ type SetupState = ( ) ;
291
288
type Key = String ;
292
289
293
290
fn name ( & self ) -> & str {
@@ -306,7 +303,6 @@ impl StorageFactoryBase for Arc<Factory> {
306
303
// TODO(Anush008): Add as a field to the Spec
307
304
let url = "http://localhost:6334/" ;
308
305
let collection_name = spec. collection_name . clone ( ) ;
309
- let setup_state = SetupState { } ;
310
306
let executors = async move {
311
307
let executor = Arc :: new ( Executor :: new (
312
308
url,
@@ -323,25 +319,25 @@ impl StorageFactoryBase for Arc<Factory> {
323
319
Ok ( ExportTargetBuildOutput {
324
320
executor : executors. boxed ( ) ,
325
321
setup_key : collection_name,
326
- desired_setup_state : setup_state ,
322
+ desired_setup_state : ( ) ,
327
323
} )
328
324
}
329
325
330
326
fn check_setup_status (
331
327
& self ,
332
328
_key : String ,
333
- _desired : Option < SetupState > ,
334
- _existing : setup:: CombinedState < SetupState > ,
335
- ) -> Result < impl setup:: ResourceSetupStatusCheck < String , SetupState > + ' static > {
329
+ _desired : Option < ( ) > ,
330
+ _existing : setup:: CombinedState < ( ) > ,
331
+ ) -> Result < impl setup:: ResourceSetupStatusCheck < String , ( ) > + ' static > {
336
332
Err ( anyhow ! (
337
333
"Set `setup_by_user` to `true` to use Qdrant storage"
338
334
) ) as Result < Infallible , _ >
339
335
}
340
336
341
337
fn check_state_compatibility (
342
338
& self ,
343
- _desired : & SetupState ,
344
- _existing : & SetupState ,
339
+ _desired : & ( ) ,
340
+ _existing : & ( ) ,
345
341
) -> Result < SetupStateCompatibility > {
346
342
Ok ( SetupStateCompatibility :: Compatible )
347
343
}
0 commit comments