Do not load modules that aren't specified in the config (#20)

This commit is contained in:
folex 2020-08-20 18:57:53 +03:00 committed by GitHub
parent 22d6c6b6c8
commit ae6d2774a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,12 +139,6 @@ impl FluenceFaaS {
fce.load_module(module_name, &module_bytes, fce_module_config)?; fce.load_module(module_name, &module_bytes, fce_module_config)?;
} }
for (name, bytes) in modules {
let module_config = config.default_modules_config.clone();
let fce_module_config = crate::misc::make_fce_config(module_config)?;
fce.load_module(name.clone(), &bytes, fce_module_config)?;
}
Ok(Self { fce }) Ok(Self { fce })
} }