summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/client.cpp
diff options
context:
space:
mode:
authorhiddenpath <[email protected]>2024-12-24 20:33:51 +0300
committerhiddenpath <[email protected]>2024-12-24 21:37:04 +0300
commit5316c104d58281584317972b3b4a1fc19dbbef45 (patch)
tree31e76ce65193995b23a380fcc9dd94bfcf11b4ad /yt/cpp/mapreduce/client/client.cpp
parent4aba061d7839ceee149b6dcf222aa348bf430c44 (diff)
Migrate THolder to std::unique_ptr in yt/cpp/mapreduce internals
commit_hash:99bfa41ffc42ed3622660b15d7ce68802e53f902
Diffstat (limited to 'yt/cpp/mapreduce/client/client.cpp')
-rw-r--r--yt/cpp/mapreduce/client/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/cpp/mapreduce/client/client.cpp b/yt/cpp/mapreduce/client/client.cpp
index 9fcb82f5b74..7d73756759d 100644
--- a/yt/cpp/mapreduce/client/client.cpp
+++ b/yt/cpp/mapreduce/client/client.cpp
@@ -940,7 +940,7 @@ TTransaction::TTransaction(
: TClientBase(rawClient, context, parentTransactionId, parentClient->GetRetryPolicy())
, TransactionPinger_(parentClient->GetTransactionPinger())
, PingableTx_(
- MakeHolder<TPingableTransaction>(
+ std::make_unique<TPingableTransaction>(
rawClient,
parentClient->GetRetryPolicy(),
context,
@@ -1434,7 +1434,7 @@ TYtPoller& TClient::GetYtPoller()
// We don't use current client and create new client because YtPoller_ might use
// this client during current client shutdown.
// That might lead to incrementing of current client refcount and double delete of current client object.
- YtPoller_ = MakeHolder<TYtPoller>(Context_, ClientRetryPolicy_);
+ YtPoller_ = std::make_unique<TYtPoller>(Context_, ClientRetryPolicy_);
}
return *YtPoller_;
}