/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/filestore/tools/testing/loadtest/bin/main.cpp
43 строки
910 B
asorotsky
opensource filestore root; p #2;
18 дек 2023, 18:26
18 дек 2023, 18:26
fab997d
Код
Авторство
О чём код?
#include "app.h" #include "bootstrap.h" #include "options.h" #include <util/generic/yexception.h> //////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { using namespace NCloud::NFileStore::NLoadTest; ConfigureSignals(); auto options = std::make_shared<TOptions>(); try { options->Parse(argc, argv); } catch (...) { Cerr << CurrentExceptionMessage() << Endl; return 1; } TBootstrap bootstrap(std::move(options)); try { bootstrap.Init(); bootstrap.Start(); } catch (...) { Cerr << CurrentExceptionMessage() << Endl; bootstrap.Stop(); return 1; } int exitCode = AppMain(bootstrap); try { bootstrap.Stop(); } catch (...) { Cerr << CurrentExceptionMessage() << Endl; return 1; } return exitCode; }