Skip to content

Commit 63e9f6a

Browse files
author
hiddenpath
committed
YT-23616: Move creation of client context to separate function
commit_hash:00566ef65ebff8cb4a46a4ffaa1772007fd47fab
1 parent db6fa67 commit 63e9f6a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

yt/cpp/mapreduce/client/client.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ void TClient::CheckShutdown() const
14961496
}
14971497
}
14981498

1499-
TClientPtr CreateClientImpl(
1499+
TClientContext CreateClientContext(
15001500
const TString& serverName,
15011501
const TCreateClientOptions& options)
15021502
{
@@ -1566,6 +1566,15 @@ TClientPtr CreateClientImpl(
15661566
TConfig::ValidateToken(context.Token);
15671567
}
15681568

1569+
return context;
1570+
}
1571+
1572+
TClientPtr CreateClientImpl(
1573+
const TString& serverName,
1574+
const TCreateClientOptions& options)
1575+
{
1576+
auto context = CreateClientContext(serverName, options);
1577+
15691578
auto globalTxId = GetGuid(context.Config->GlobalTxId);
15701579

15711580
auto retryConfigProvider = options.RetryConfigProvider_;

0 commit comments

Comments
 (0)