diff options
author | pnv1 <pnv1@yandex-team.ru> | 2022-02-10 16:50:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:20 +0300 |
commit | 0689407cd3d1e44446526af0be1433d1c126788e (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library | |
parent | 5f48504f9120f1bd635dfd2819efab47e7a203a5 (diff) | |
download | ydb-0689407cd3d1e44446526af0be1433d1c126788e.tar.gz |
Restoring authorship annotation for <pnv1@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/getopt/small/last_getopt_opts.cpp | 12 | ||||
-rw-r--r-- | library/cpp/getopt/small/last_getopt_opts.h | 12 | ||||
-rw-r--r-- | library/cpp/grpc/client/grpc_common.h | 10 |
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 f567a2745b..03c432849f 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 4acce7ac5b..825b99c871 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 984fce2aa3..ffcdafe045 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); |