Skip to content
Snippets Groups Projects
Commit d01f2505 authored by Éloïs's avatar Éloïs
Browse files

fix(cli): --max-old-space-size is not conventional

parent 6733b275
No related branches found
No related tags found
No related merge requests found
...@@ -39,11 +39,7 @@ fn gen_webstart_args(args: &DuniterWebstartArgs, duniter_ts_args: &mut Vec<Strin ...@@ -39,11 +39,7 @@ fn gen_webstart_args(args: &DuniterWebstartArgs, duniter_ts_args: &mut Vec<Strin
} }
pub(crate) fn gen_duniter_ts_args(args: &DuniterArgs, duniter_js_exe: String) -> Vec<String> { pub(crate) fn gen_duniter_ts_args(args: &DuniterArgs, duniter_js_exe: String) -> Vec<String> {
let mut duniter_ts_args = vec![ let mut duniter_ts_args = vec!["--max-old-space-size=4096".to_owned(), duniter_js_exe];
"--max-old-space-size".to_owned(),
"4096".to_owned(),
duniter_js_exe,
];
if let Some(ref home) = args.home { if let Some(ref home) = args.home {
duniter_ts_args.push("--home".to_owned()); duniter_ts_args.push("--home".to_owned());
duniter_ts_args.push(home.to_str().expect("invalid home path").to_owned()); duniter_ts_args.push(home.to_str().expect("invalid home path").to_owned());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment