Commit 4bb0009e authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

main: use c++ 17

parent cbc2137c
......@@ -24,7 +24,6 @@
#include "common/log/StdoutLogger.hpp"
#include "common/log/Logger.hpp"
#include "common/log/LogLevel.hpp"
#include "common/make_unique.hpp"
#include "scheduler/OStoreDB/OStoreDBInit.hpp"
#include <getopt.h>
......@@ -140,10 +139,10 @@ int main(const int argc, char *const *const argv) {
auto backed = config.getConfEntString("ObjectStore", "BackendPath");
lc.log(log::INFO, "Using scheduler backend: " + backed);
auto sInit = cta::make_unique<SchedulerDBInit_t>("Frontend", backed, logger);
auto sInit = std::make_unique<SchedulerDBInit_t>("Frontend", backed, logger);
auto scheddb = sInit->getSchedDB(*catalogue, logger);
scheddb->setBottomHalfQueueSize(25000);
auto scheduler = cta::make_unique<cta::Scheduler>(*catalogue, *scheddb, 5, 2*1000*1000);
auto scheduler = std::make_unique<cta::Scheduler>(*catalogue, *scheddb, 5, 2*1000*1000);
CtaRpcImpl svc(&logger, catalogue, scheduler);
......@@ -193,4 +192,4 @@ int main(const int argc, char *const *const argv) {
lc.log(cta::log::INFO, "Listening on socket address: " + server_address);
server->Wait();
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment