Service mode flag as argument in start function of Server

This commit is contained in:
2025-04-30 21:36:32 +03:00
parent f0c7bb3f18
commit 4402bbfe3f
3 changed files with 10 additions and 11 deletions

View File

@@ -31,8 +31,8 @@ int main(int argc, char **argv) {
}
try {
Server server(host, port, service_mode);
server.start(steps);
Server server(host, port);
server.start(steps, service_mode);
} catch (const std::runtime_error& e){
std::cerr << "Server application error: " << e.what() << std::endl;
return 1;