/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/blockstore/libs/cells/impl/endpoint_bootstrap_impl.cpp
53 строки
2 KB
yegorskii
fix secure grpc channel creation (#5886)
04 май 2026, 14:44
Не верифицирован
04 май 2026, 14:44
c0575af
Код
Авторство
О чём код?
#include "endpoint_bootstrap_impl.h" #include <cloud/blockstore/libs/cells/iface/config.h> #include <cloud/blockstore/libs/client/config.h> #include <cloud/blockstore/libs/client/multiclient_endpoint.h> #include <cloud/blockstore/libs/client_rdma/rdma_client.h> namespace NCloud::NBlockStore::NCells { using namespace NThreading; //////////////////////////////////////////////////////////////////////////////// auto TCellCellHostEndpointBootstrap::SetupHostGrpcEndpoint( const TBootstrap& bootstrap, const TCellHostConfig& config) -> TGrpcEndpointBootstrapFuture { auto endpoint = CreateMultiClientEndpoint( bootstrap.GrpcClient, config.GetFqdn(), config.GetSecureGrpcPort() ? config.GetSecureGrpcPort() : config.GetGrpcPort(), config.GetSecureGrpcPort() != 0); return MakeFuture(endpoint); } auto TCellCellHostEndpointBootstrap::SetupHostRdmaEndpoint( const TBootstrap& bootstrap, const TCellHostConfig& config) -> TRdmaEndpointBootstrapFuture { NClient::TRdmaEndpointConfig rdmaEndpoint{ .Address = config.GetFqdn(), .Port = config.GetRdmaPort(), }; return CreateRdmaDataEndpointAsync( bootstrap.Logging, bootstrap.RdmaClient, bootstrap.TraceSerializer, bootstrap.RdmaTaskQueue, rdmaEndpoint); } //////////////////////////////////////////////////////////////////////////////// ICellHostEndpointBootstrapPtr CreateCellHostEndpointBootstrap() { return std::make_shared<TCellCellHostEndpointBootstrap>(); } //////////////////////////////////////////////////////////////////////////////// } // namespace NCloud::NBlockStore::NCells