refactor(inputloader): remove unnecessary javisms (#271)
Part of https://github.com/ooni/probe/issues/1299.
This commit is contained in:
@@ -356,7 +356,7 @@ func MainWithConfiguration(experimentName string, currentOptions Options) {
|
||||
builder, err := sess.NewExperimentBuilder(experimentName)
|
||||
fatalOnError(err, "cannot create experiment builder")
|
||||
|
||||
inputLoader := engine.NewInputLoader(engine.InputLoaderConfig{
|
||||
inputLoader := &engine.InputLoader{
|
||||
CheckInConfig: &model.CheckInConfig{
|
||||
RunType: "manual",
|
||||
OnWiFi: true, // meaning: not on 4G
|
||||
@@ -366,7 +366,7 @@ func MainWithConfiguration(experimentName string, currentOptions Options) {
|
||||
StaticInputs: currentOptions.Inputs,
|
||||
SourceFiles: currentOptions.InputFilePaths,
|
||||
Session: sess,
|
||||
})
|
||||
}
|
||||
inputs, err := inputLoader.Load(context.Background())
|
||||
fatalOnError(err, "cannot load inputs")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user