mirror of
https://github.com/fluencelabs/marine.git
synced 2025-03-15 14:00:50 +00:00
Do not load modules that aren't specified in the config (#20)
This commit is contained in:
parent
22d6c6b6c8
commit
ae6d2774a8
@ -139,12 +139,6 @@ impl FluenceFaaS {
|
||||
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 })
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user