diff options
author | hiddenpath <hiddenpath@yandex-team.com> | 2025-02-15 19:51:48 +0300 |
---|---|---|
committer | hiddenpath <hiddenpath@yandex-team.com> | 2025-02-15 20:10:01 +0300 |
commit | 629604d7b6b82e83c694f3c0373ce1a2ab8d20cb (patch) | |
tree | be50bfdcee5673447dbfe0731bdfb6c0f07dc327 | |
parent | fd0d7feaceb3963c15f0c22e26940ebb43e91e9b (diff) | |
download | ydb-629604d7b6b82e83c694f3c0373ce1a2ab8d20cb.tar.gz |
YT-23616: Add implementation of method for creating rpc client
commit_hash:5854a0271a0a2a26dc9891ff1502889edbf38a18
-rw-r--r-- | yt/cpp/mapreduce/client/client.h | 6 | ||||
-rw-r--r-- | yt/cpp/mapreduce/interface/client.h | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/yt/cpp/mapreduce/client/client.h b/yt/cpp/mapreduce/client/client.h index 4ceb7f69b3..769dfe2312 100644 --- a/yt/cpp/mapreduce/client/client.h +++ b/yt/cpp/mapreduce/client/client.h @@ -507,9 +507,13 @@ private: //////////////////////////////////////////////////////////////////////////////// +TClientContext CreateClientContext( + const TString& serverName, + const TCreateClientOptions& options); + TClientPtr CreateClientImpl( const TString& serverName, - const TCreateClientOptions& options = TCreateClientOptions()); + const TCreateClientOptions& options = {}); //////////////////////////////////////////////////////////////////////////////// diff --git a/yt/cpp/mapreduce/interface/client.h b/yt/cpp/mapreduce/interface/client.h index 3032025140..8270eec55d 100644 --- a/yt/cpp/mapreduce/interface/client.h +++ b/yt/cpp/mapreduce/interface/client.h @@ -572,16 +572,14 @@ public: virtual void Shutdown() = 0; }; - /// Create a client for particular MapReduce cluster. IClientPtr CreateClient( const TString& serverName, - const TCreateClientOptions& options = TCreateClientOptions()); - + const TCreateClientOptions& options = {}); /// Create a client for mapreduce cluster specified in `YT_PROXY` environment variable. IClientPtr CreateClientFromEnv( - const TCreateClientOptions& options = TCreateClientOptions()); + const TCreateClientOptions& options = {}); //////////////////////////////////////////////////////////////////////////////// |