summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/client.cpp
diff options
context:
space:
mode:
authorhiddenpath <[email protected]>2025-02-15 17:02:43 +0300
committerhiddenpath <[email protected]>2025-02-15 17:16:22 +0300
commit63e9f6ad89146798a8ca0fd489dd0f6b8d8a9f07 (patch)
tree77f009a170364353269efe66eb3efe63168cb1ee /yt/cpp/mapreduce/client/client.cpp
parentdb6fa67d60db987184fd5eef86d347e2cad85daa (diff)
YT-23616: Move creation of client context to separate function
commit_hash:00566ef65ebff8cb4a46a4ffaa1772007fd47fab
Diffstat (limited to 'yt/cpp/mapreduce/client/client.cpp')
-rw-r--r--yt/cpp/mapreduce/client/client.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/client/client.cpp b/yt/cpp/mapreduce/client/client.cpp
index e609f924a42..11c1a6af38f 100644
--- a/yt/cpp/mapreduce/client/client.cpp
+++ b/yt/cpp/mapreduce/client/client.cpp
@@ -1496,7 +1496,7 @@ void TClient::CheckShutdown() const
}
}
-TClientPtr CreateClientImpl(
+TClientContext CreateClientContext(
const TString& serverName,
const TCreateClientOptions& options)
{
@@ -1566,6 +1566,15 @@ TClientPtr CreateClientImpl(
TConfig::ValidateToken(context.Token);
}
+ return context;
+}
+
+TClientPtr CreateClientImpl(
+ const TString& serverName,
+ const TCreateClientOptions& options)
+{
+ auto context = CreateClientContext(serverName, options);
+
auto globalTxId = GetGuid(context.Config->GlobalTxId);
auto retryConfigProvider = options.RetryConfigProvider_;