Try to fix some version-specific clangformat formatting issues (#1927)
This commit is contained in:
parent
04a7be8510
commit
0f6d02c4ba
2 changed files with 5 additions and 4 deletions
|
@ -75,11 +75,13 @@ void nano_daemon::daemon::run (boost::filesystem::path const & data_path, nano::
|
|||
rpc_process = std::make_unique<boost::process::child> (config.rpc.rpc_path, "--daemon");
|
||||
#else
|
||||
auto rpc_exe_command = boost::str (boost::format ("%1% %2%") % config.rpc.rpc_path % "--daemon");
|
||||
rpc_process_thread = std::make_unique<std::thread> ([ rpc_exe_command, &logger = node->logger ]() {
|
||||
// clang-format off
|
||||
rpc_process_thread = std::make_unique<std::thread> ([rpc_exe_command, &logger = node->logger]() {
|
||||
nano::thread_role::set (nano::thread_role::name::rpc_process_container);
|
||||
std::system (rpc_exe_command.c_str ());
|
||||
logger.always_log ("RPC server has stopped");
|
||||
});
|
||||
// clang-format on
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,11 +77,10 @@ nano::system::~system ()
|
|||
i->stop ();
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
#ifndef _WIN32
|
||||
// Windows cannot remove the log and data files while they are still owned by this process.
|
||||
// They will be removed later
|
||||
// clang-format on
|
||||
#ifndef _WIN32
|
||||
|
||||
// Clean up tmp directories created by the tests. Since it's sometimes useful to
|
||||
// see log files after test failures, an environment variable is supported to
|
||||
// retain the files.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue