diff options
author | don-dron <don-dron@yandex-team.com> | 2024-05-17 15:04:36 +0300 |
---|---|---|
committer | don-dron <don-dron@yandex-team.com> | 2024-05-17 15:18:15 +0300 |
commit | ce74f15f22c2159c7fbb402a2804cc463fb7698b (patch) | |
tree | 151f9ae0bfb4db0b0053b5cc6e4e0769c31ae8ee | |
parent | 40bc608a1d1b7ca987887848e3d072f10ca0d4c9 (diff) | |
download | ydb-ce74f15f22c2159c7fbb402a2804cc463fb7698b.tar.gz |
YT-21547: Cosmetics
d7289b88c1b52abc27589ed0480714656864f213
-rw-r--r-- | yt/yt/core/bus/tcp/packet.cpp | 2 | ||||
-rw-r--r-- | yt/yt/core/rpc/server_detail.h | 2 | ||||
-rw-r--r-- | yt/yt/core/rpc/service.h | 2 | ||||
-rw-r--r-- | yt/yt/core/rpc/service_detail.h | 2 | ||||
-rw-r--r-- | yt/yt/core/ytree/ypath_detail.cpp | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/yt/yt/core/bus/tcp/packet.cpp b/yt/yt/core/bus/tcp/packet.cpp index 3ec57dc9c4..039c005e8a 100644 --- a/yt/yt/core/bus/tcp/packet.cpp +++ b/yt/yt/core/bus/tcp/packet.cpp @@ -343,7 +343,7 @@ private: } else if (partSize == 0) { Parts_.push_back(TSharedRef::MakeEmpty()); } else { - TSharedMutableRef part = TSharedMutableRef::Allocate<TPacketDecoderTag>(partSize); + auto part = TSharedMutableRef::Allocate<TPacketDecoderTag>(partSize); BeginPhase(EPacketPhase::MessagePart, part.Begin(), part.Size()); Parts_.push_back(std::move(part)); break; diff --git a/yt/yt/core/rpc/server_detail.h b/yt/yt/core/rpc/server_detail.h index 64e076d1d5..f1976b091a 100644 --- a/yt/yt/core/rpc/server_detail.h +++ b/yt/yt/core/rpc/server_detail.h @@ -18,7 +18,7 @@ namespace NYT::NRpc { //////////////////////////////////////////////////////////////////////////////// -// Magic constant! This is the lower limit of the memory allocated for the request. +// Magic constant! This is lower limit of memory allocated for request. constexpr i64 TypicalRequestSize = 4_KB; //////////////////////////////////////////////////////////////////////////////// diff --git a/yt/yt/core/rpc/service.h b/yt/yt/core/rpc/service.h index b92aabac5d..4fd36abb97 100644 --- a/yt/yt/core/rpc/service.h +++ b/yt/yt/core/rpc/service.h @@ -239,7 +239,7 @@ struct IServiceContext virtual bool IsResponseBodySerializedWithCompression() const = 0; virtual void SetResponseBodySerializedWithCompression() = 0; - //! Return total size of request. Sum of Header, Body, Attachments, TServiceContext, parsed RequestHeaderProto and TraceContext. + //! Returns total size of request. Sum of Header, Body, Attachments, TServiceContext, parsed RequestHeaderProto and TraceContext. virtual i64 GetTotalSize() const = 0; // Extension methods. diff --git a/yt/yt/core/rpc/service_detail.h b/yt/yt/core/rpc/service_detail.h index da707d9080..f1f77e71f7 100644 --- a/yt/yt/core/rpc/service_detail.h +++ b/yt/yt/core/rpc/service_detail.h @@ -196,7 +196,7 @@ public: } Request_->Context_ = underlyingContext.Get(); - auto tracker = Request_->Context_->GetMemoryUsageTracker(); + const auto& tracker = Request_->Context_->GetMemoryUsageTracker(); const auto& requestHeader = this->GetRequestHeader(); // COMPAT(danilalexeev): legacy RPC codecs diff --git a/yt/yt/core/ytree/ypath_detail.cpp b/yt/yt/core/ytree/ypath_detail.cpp index 0ccbe25b7c..55c8bc8022 100644 --- a/yt/yt/core/ytree/ypath_detail.cpp +++ b/yt/yt/core/ytree/ypath_detail.cpp @@ -1729,7 +1729,7 @@ IYPathServiceContextPtr CreateYPathContext( return New<TYPathServiceContext>( std::move(requestMessage), - TMemoryUsageTrackerGuard{}, + TMemoryUsageTrackerGuard(), GetNullMemoryUsageTracker(), std::move(logger), logLevel); @@ -1746,7 +1746,7 @@ IYPathServiceContextPtr CreateYPathContext( return New<TYPathServiceContext>( std::move(requestHeader), std::move(requestMessage), - TMemoryUsageTrackerGuard{}, + TMemoryUsageTrackerGuard(), GetNullMemoryUsageTracker(), std::move(logger), logLevel); |