aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorosidorkin <osidorkin@yandex-team.com>2024-04-14 20:34:26 +0300
committerosidorkin <osidorkin@yandex-team.com>2024-04-14 20:42:14 +0300
commitbffcd51478a9aeba25357eaa4169e63f29b33dc8 (patch)
tree9636ab8b4843d324242cf89c48c82a92553259ac /yt
parent4b72cdcffc13ee30879636f719934b6f95285c90 (diff)
downloadydb-bffcd51478a9aeba25357eaa4169e63f29b33dc8.tar.gz
Trivial: use FromProto
e0daa6cd21ba43e5424a234a4a739471157b4823
Diffstat (limited to 'yt')
-rw-r--r--yt/yt/client/transaction_client/remote_timestamp_provider.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/yt/yt/client/transaction_client/remote_timestamp_provider.cpp b/yt/yt/client/transaction_client/remote_timestamp_provider.cpp
index c45478975f..576029efe5 100644
--- a/yt/yt/client/transaction_client/remote_timestamp_provider.cpp
+++ b/yt/yt/client/transaction_client/remote_timestamp_provider.cpp
@@ -92,6 +92,7 @@ private:
auto responseClockClusterTag = rsp->has_clock_cluster_tag()
? FromProto<TCellTag>(rsp->clock_cluster_tag())
: InvalidCellTag;
+ auto responseTimestamp = FromProto<TTimestamp>(rsp->timestamp());
if (clockClusterTag != InvalidCellTag && responseClockClusterTag != InvalidCellTag &&
clockClusterTag != responseClockClusterTag)
@@ -101,8 +102,8 @@ private:
<< TErrorAttribute("response_clock_cluster_tag", responseClockClusterTag);
}
- return static_cast<TTimestamp>(rsp->timestamp());
- }));
+ return responseTimestamp;
+ }));
}
};