diff options
Diffstat (limited to 'searchcore/src/apps/proton/proton.cpp')
-rw-r--r-- | searchcore/src/apps/proton/proton.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/apps/proton/proton.cpp b/searchcore/src/apps/proton/proton.cpp index 7d63d8910ba..a805506b381 100644 --- a/searchcore/src/apps/proton/proton.cpp +++ b/searchcore/src/apps/proton/proton.cpp @@ -27,7 +27,7 @@ struct Params ~Params(); }; -Params::~Params() {} +Params::~Params() = default; class App : public FastOS_Application { @@ -174,7 +174,7 @@ App::Main() std::unique_ptr<search::StateFile> stateFile; std::unique_ptr<search::SigBusHandler> sigBusHandler; std::unique_ptr<search::IOErrorHandler> ioErrorHandler; - protonUP = std::make_unique<proton::Proton>(params.identity, _argc > 0 ? _argv[0] : "proton", params.subscribeTimeout); + protonUP = std::make_unique<proton::Proton>(params.identity, _argc > 0 ? _argv[0] : "proton", std::chrono::milliseconds(params.subscribeTimeout)); proton::Proton & proton = *protonUP; proton::BootstrapConfig::SP configSnapshot = proton.init(); if (proton.hasAbortedInit()) { @@ -220,7 +220,7 @@ App::Main() std::unique_ptr<ProtonServiceLayerProcess> spiProton; if ( ! params.serviceidentity.empty()) { spiProton.reset(new ProtonServiceLayerProcess(params.serviceidentity, proton, downPersistence.get())); - spiProton->setupConfig(params.subscribeTimeout); + spiProton->setupConfig(std::chrono::milliseconds(params.subscribeTimeout)); spiProton->createNode(); EV_STARTED("servicelayer"); } |