diff options
author | prime <prime@yandex-team.ru> | 2022-02-10 16:46:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:01 +0300 |
commit | e34f3f0e381020a427f44fbd50463d9a04089db3 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/libs/grpc/src | |
parent | 3695a7cd42b74a4987d8d5a8f2e2443556998943 (diff) | |
download | ydb-e34f3f0e381020a427f44fbd50463d9a04089db3.tar.gz |
Restoring authorship annotation for <prime@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/grpc/src')
4 files changed, 18 insertions, 18 deletions
diff --git a/contrib/libs/grpc/src/compiler/generator_helpers.h b/contrib/libs/grpc/src/compiler/generator_helpers.h index 64d98e722d..265713a16b 100644 --- a/contrib/libs/grpc/src/compiler/generator_helpers.h +++ b/contrib/libs/grpc/src/compiler/generator_helpers.h @@ -26,7 +26,7 @@ #include <vector> #include <util/generic/string.h> -#include <util/string/split.h> +#include <util/string/split.h> #include <util/stream/str.h> #include "src/compiler/config.h" @@ -183,10 +183,10 @@ inline void Split(const TStringType& s, char /*delim*/, template <> inline void Split(const TString &s, char delim, std::vector<TString> *append_to) { - TVector<TString> parts; - Split(s, TString(1, delim), parts); - for (auto& p : parts) { - append_to->push_back(std::move(p)); + TVector<TString> parts; + Split(s, TString(1, delim), parts); + for (auto& p : parts) { + append_to->push_back(std::move(p)); } } diff --git a/contrib/libs/grpc/src/core/tsi/ssl_transport_security.cc b/contrib/libs/grpc/src/core/tsi/ssl_transport_security.cc index 963cdfe7d4..374f8e583f 100644 --- a/contrib/libs/grpc/src/core/tsi/ssl_transport_security.cc +++ b/contrib/libs/grpc/src/core/tsi/ssl_transport_security.cc @@ -189,16 +189,16 @@ static void init_openssl(void) { GPR_ASSERT(g_ssl_ctx_ex_factory_index != -1); } -static void do_nothing(void) {} - -extern "C" void grpc_dont_init_openssl(void) { - gpr_once_init(&g_init_openssl_once, do_nothing); -} - -extern "C" void grpc_init_openssl(void) { - gpr_once_init(&g_init_openssl_once, init_openssl); -} - +static void do_nothing(void) {} + +extern "C" void grpc_dont_init_openssl(void) { + gpr_once_init(&g_init_openssl_once, do_nothing); +} + +extern "C" void grpc_init_openssl(void) { + gpr_once_init(&g_init_openssl_once, init_openssl); +} + /* --- Ssl utils. ---*/ static const char* ssl_error_string(int error) { diff --git a/contrib/libs/grpc/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi b/contrib/libs/grpc/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi index e004943303..54eb7fdffc 100644 --- a/contrib/libs/grpc/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi +++ b/contrib/libs/grpc/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi @@ -333,7 +333,7 @@ cdef extern from "grpc/grpc.h": void * reserved grpc_op_data data - void grpc_dont_init_openssl() nogil + void grpc_dont_init_openssl() nogil void grpc_init() nogil void grpc_shutdown_blocking() nogil int grpc_is_initialized() nogil diff --git a/contrib/libs/grpc/src/python/grpcio/grpc/_cython/cygrpc.pyx b/contrib/libs/grpc/src/python/grpcio/grpc/_cython/cygrpc.pyx index a983081018..8d355c6fbb 100644 --- a/contrib/libs/grpc/src/python/grpcio/grpc/_cython/cygrpc.pyx +++ b/contrib/libs/grpc/src/python/grpcio/grpc/_cython/cygrpc.pyx @@ -92,8 +92,8 @@ cdef _initialize(): # We have Python callbacks called by c-core threads, this ensures the GIL # is initialized. PyEval_InitThreads() - import ssl - grpc_dont_init_openssl() + import ssl + grpc_dont_init_openssl() # Load Arcadia certs in ComputePemRootCerts and do not override here. _initialize() |