diff options
author | asmyasnikov <asmyasnikov@ydb.tech> | 2023-11-07 22:25:24 +0300 |
---|---|---|
committer | asmyasnikov <asmyasnikov@ydb.tech> | 2023-11-07 22:56:11 +0300 |
commit | 5c9959864eb32f9cc5dda517291e55ecedb6722e (patch) | |
tree | 3a7cfe3f517d8b707be80d3a0f1b20b26933c2db /library | |
parent | aa20b6f0f5763275b4527ea571da4258d44a2256 (diff) | |
download | ydb-5c9959864eb32f9cc5dda517291e55ecedb6722e.tar.gz |
added switch secure/insecure grpc channel for wilson uploader
added switch secure/insecure grpc channel for wilson uploader
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/actors/wilson/wilson_uploader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/actors/wilson/wilson_uploader.cpp b/library/cpp/actors/wilson/wilson_uploader.cpp index 13fca19015..3599d66809 100644 --- a/library/cpp/actors/wilson/wilson_uploader.cpp +++ b/library/cpp/actors/wilson/wilson_uploader.cpp @@ -67,9 +67,9 @@ namespace NWilson { void Bootstrap() { Become(&TThis::StateFunc); - Channel = grpc::CreateChannel(TStringBuilder() << Host << ":" << Port, grpc::SslCredentials({ + Channel = grpc::CreateChannel(TStringBuilder() << Host << ":" << Port, RootCA ? grpc::SslCredentials({ .pem_root_certs = TFileInput(RootCA).ReadAll(), - })); + }) : grpc::InsecureChannelCredentials()); Stub = NServiceProto::TraceService::NewStub(Channel); LOG_INFO_S(*TlsActivationContext, 430 /* NKikimrServices::WILSON */, "TWilsonUploader::Bootstrap"); |