aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorpnv1 <pnv1@yandex-team.ru>2022-02-10 16:50:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:19 +0300
commit5f48504f9120f1bd635dfd2819efab47e7a203a5 (patch)
tree985e314900d3af63f541801073ee21565381b5d1 /library
parent57d5924cfae7600e91d372034c64914e0a0b6396 (diff)
downloadydb-5f48504f9120f1bd635dfd2819efab47e7a203a5.tar.gz
Restoring authorship annotation for <pnv1@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library')
-rw-r--r--library/cpp/getopt/small/last_getopt_opts.cpp12
-rw-r--r--library/cpp/getopt/small/last_getopt_opts.h12
-rw-r--r--library/cpp/grpc/client/grpc_common.h10
3 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/getopt/small/last_getopt_opts.cpp b/library/cpp/getopt/small/last_getopt_opts.cpp
index 03c432849f..f567a2745b 100644
--- a/library/cpp/getopt/small/last_getopt_opts.cpp
+++ b/library/cpp/getopt/small/last_getopt_opts.cpp
@@ -313,12 +313,12 @@ namespace NLastGetopt {
}
void TOpts::PrintCmdLine(const TStringBuf& program, IOutputStream& os, const NColorizer::TColors& colors) const {
- os << colors.BoldColor() << "Usage" << colors.OldColor() << ": ";
- if (CustomUsage) {
- os << CustomUsage;
- } else {
- os << program << " ";
- }
+ os << colors.BoldColor() << "Usage" << colors.OldColor() << ": ";
+ if (CustomUsage) {
+ os << CustomUsage;
+ } else {
+ os << program << " ";
+ }
if (CustomCmdLineDescr) {
os << CustomCmdLineDescr << Endl;
return;
diff --git a/library/cpp/getopt/small/last_getopt_opts.h b/library/cpp/getopt/small/last_getopt_opts.h
index 825b99c871..4acce7ac5b 100644
--- a/library/cpp/getopt/small/last_getopt_opts.h
+++ b/library/cpp/getopt/small/last_getopt_opts.h
@@ -65,7 +65,7 @@ namespace NLastGetopt {
TString Title; // title of the help string
TString CustomCmdLineDescr; // user defined help string
- TString CustomUsage; // user defined usage string
+ TString CustomUsage; // user defined usage string
TVector<std::pair<TString, TString>> Sections; // additional help entries to print after usage
@@ -420,11 +420,11 @@ namespace NLastGetopt {
*
* @param usage new usage string
*/
- void SetCustomUsage(const TString& usage) {
- CustomUsage = usage;
- }
-
- /**
+ void SetCustomUsage(const TString& usage) {
+ CustomUsage = usage;
+ }
+
+ /**
* Add a section to print after the main usage spec.
*/
void AddSection(TString title, TString text) {
diff --git a/library/cpp/grpc/client/grpc_common.h b/library/cpp/grpc/client/grpc_common.h
index ffcdafe045..984fce2aa3 100644
--- a/library/cpp/grpc/client/grpc_common.h
+++ b/library/cpp/grpc/client/grpc_common.h
@@ -18,8 +18,8 @@ struct TGRpcClientConfig {
ui64 MaxInboundMessageSize = 0; // overrides MaxMessageSize for incoming requests
ui64 MaxOutboundMessageSize = 0; // overrides MaxMessageSize for outgoing requests
ui32 MaxInFlight = 0;
- bool EnableSsl = false;
- TString SslCaCert; //Implicitly enables Ssl if not empty
+ bool EnableSsl = false;
+ TString SslCaCert; //Implicitly enables Ssl if not empty
grpc_compression_algorithm CompressionAlgoritm = GRPC_COMPRESS_NONE;
ui64 MemQuota = 0;
std::unordered_map<TString, TString> StringChannelParams;
@@ -35,12 +35,12 @@ struct TGRpcClientConfig {
TGRpcClientConfig(const TString& locator, TDuration timeout = TDuration::Max(),
ui64 maxMessageSize = DEFAULT_GRPC_MESSAGE_SIZE_LIMIT, ui32 maxInFlight = 0, TString caCert = "",
- grpc_compression_algorithm compressionAlgorithm = GRPC_COMPRESS_NONE, bool enableSsl = false)
+ grpc_compression_algorithm compressionAlgorithm = GRPC_COMPRESS_NONE, bool enableSsl = false)
: Locator(locator)
, Timeout(timeout)
, MaxMessageSize(maxMessageSize)
, MaxInFlight(maxInFlight)
- , EnableSsl(enableSsl)
+ , EnableSsl(enableSsl)
, SslCaCert(caCert)
, CompressionAlgoritm(compressionAlgorithm)
{}
@@ -74,7 +74,7 @@ inline std::shared_ptr<grpc::ChannelInterface> CreateChannelInterface(const TGRp
if (!config.SslTargetNameOverride.empty()) {
args.SetSslTargetNameOverride(config.SslTargetNameOverride);
}
- if (config.EnableSsl || config.SslCaCert) {
+ if (config.EnableSsl || config.SslCaCert) {
return grpc::CreateCustomChannel(config.Locator, grpc::SslCredentials(grpc::SslCredentialsOptions{config.SslCaCert, "", ""}), args);
} else {
return grpc::CreateCustomChannel(config.Locator, grpc::InsecureChannelCredentials(), args);