Merge pull request #2807
61712384
daemon & simplewallet: don't set max-concurrency when unspecified (stoffu)
This commit is contained in:
commit
fbfdaae06f
|
@ -278,7 +278,7 @@ int main(int argc, char const * argv[])
|
||||||
tools::set_stack_trace_log(log_file_path.filename().string());
|
tools::set_stack_trace_log(log_file_path.filename().string());
|
||||||
#endif // STACK_TRACE
|
#endif // STACK_TRACE
|
||||||
|
|
||||||
if (command_line::has_arg(vm, daemon_args::arg_max_concurrency))
|
if (!command_line::is_arg_defaulted(vm, daemon_args::arg_max_concurrency))
|
||||||
tools::set_max_concurrency(command_line::get_arg(vm, daemon_args::arg_max_concurrency));
|
tools::set_max_concurrency(command_line::get_arg(vm, daemon_args::arg_max_concurrency));
|
||||||
|
|
||||||
// logging is now set up
|
// logging is now set up
|
||||||
|
|
|
@ -178,7 +178,7 @@ namespace wallet_args
|
||||||
mlog_set_log(command_line::get_arg(vm, arg_log_level).c_str());
|
mlog_set_log(command_line::get_arg(vm, arg_log_level).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
if(command_line::has_arg(vm, arg_max_concurrency))
|
if (!command_line::is_arg_defaulted(vm, arg_max_concurrency))
|
||||||
tools::set_max_concurrency(command_line::get_arg(vm, arg_max_concurrency));
|
tools::set_max_concurrency(command_line::get_arg(vm, arg_max_concurrency));
|
||||||
|
|
||||||
Print(print) << "Monero '" << MONERO_RELEASE_NAME << "' (v" << MONERO_VERSION_FULL << ")";
|
Print(print) << "Monero '" << MONERO_RELEASE_NAME << "' (v" << MONERO_VERSION_FULL << ")";
|
||||||
|
|
Loading…
Reference in New Issue