@@ -59,10 +59,6 @@ pub struct Run {
59
59
#[ arg( long, env) ]
60
60
pub sample_data : bool ,
61
61
62
- /// Run an embedded importer server.
63
- #[ arg( long, env = "TRUSTD_WITH_IMPORTER" , default_value_t = false ) ]
64
- pub with_importer : bool ,
65
-
66
62
/// Allows enabling the GraphQL endpoint
67
63
#[ arg( long, env = "TRUSTD_WITH_GRAPHQL" , default_value_t = false ) ]
68
64
pub with_graphql : bool ,
@@ -72,10 +68,6 @@ pub struct Run {
72
68
#[ arg( long, env) ]
73
69
pub embedded_oidc : bool ,
74
70
75
- /// The importer working directory
76
- #[ arg( long, env) ]
77
- pub working_dir : Option < PathBuf > ,
78
-
79
71
/// The size limit of SBOMs, uncompressed.
80
72
#[ arg(
81
73
long,
@@ -174,9 +166,7 @@ struct InitData {
174
166
#[ cfg( feature = "garage-door" ) ]
175
167
embedded_oidc : Option < embedded_oidc:: EmbeddedOidc > ,
176
168
ui : UI ,
177
- working_dir : Option < PathBuf > ,
178
169
with_graphql : bool ,
179
- with_importer : bool ,
180
170
config : ModuleConfig ,
181
171
}
182
172
@@ -309,9 +299,7 @@ impl InitData {
309
299
#[ cfg( feature = "garage-door" ) ]
310
300
embedded_oidc,
311
301
ui,
312
- working_dir : run. working_dir ,
313
302
with_graphql : run. with_graphql ,
314
- with_importer : run. with_importer || run. devmode ,
315
303
} )
316
304
}
317
305
@@ -346,12 +334,6 @@ impl InitData {
346
334
347
335
let mut tasks = vec ! [ http] ;
348
336
349
- // run the importer, when requested
350
- if self . with_importer {
351
- let importer = async { importer ( db, storage, self . working_dir ) . await } . boxed_local ( ) ;
352
- tasks. push ( importer) ;
353
- }
354
-
355
337
// track the embedded OIDC server task
356
338
#[ cfg( feature = "garage-door" ) ]
357
339
if let Some ( embedded_oidc) = self . embedded_oidc . take ( ) {
0 commit comments