/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/blockstore/tools/testing/rdma-test/main.cpp
42 строки
874 B
arigachnyy
add blockstore/tests to oss
08 ноя 2023, 14:44
08 ноя 2023, 14:44
7fb4295
Код
Авторство
О чём код?
#include "app.h" #include "bootstrap.h" #include "options.h" #include <util/generic/yexception.h> //////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { using namespace NCloud::NBlockStore; 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; return 1; } int exitCode = AppMain(bootstrap); try { bootstrap.Stop(); } catch (...) { Cerr << CurrentExceptionMessage() << Endl; return 1; } return exitCode; }