aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpogorelov <pogorelov@yandex-team.com>2023-08-30 15:16:11 +0300
committerpogorelov <pogorelov@yandex-team.com>2023-08-30 15:48:44 +0300
commit578f59cd45578cc5d3a61e3b1dc1cab146ecab69 (patch)
tree0dd399ba5e2dab2a24a3d7845d5fb9d04229873d
parent49e42e681bd6ea6e38a08678a08055b41bc93fec (diff)
downloadydb-578f59cd45578cc5d3a61e3b1dc1cab146ecab69.tar.gz
Make rpc proxy CreateRequest methods const
-rw-r--r--yt/yt/core/rpc/client-inl.h2
-rw-r--r--yt/yt/core/rpc/client.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/yt/yt/core/rpc/client-inl.h b/yt/yt/core/rpc/client-inl.h
index d2f83cbb11..894f21ff68 100644
--- a/yt/yt/core/rpc/client-inl.h
+++ b/yt/yt/core/rpc/client-inl.h
@@ -139,7 +139,7 @@ bool TTypedClientResponse<TResponseMessage>::TryDeserializeBody(TRef data, std::
////////////////////////////////////////////////////////////////////////////////
template <class T>
-TIntrusivePtr<T> TProxyBase::CreateRequest(const TMethodDescriptor& methodDescriptor)
+TIntrusivePtr<T> TProxyBase::CreateRequest(const TMethodDescriptor& methodDescriptor) const
{
auto request = New<T>(
Channel_,
diff --git a/yt/yt/core/rpc/client.h b/yt/yt/core/rpc/client.h
index 25479128d6..d8d070e7b4 100644
--- a/yt/yt/core/rpc/client.h
+++ b/yt/yt/core/rpc/client.h
@@ -449,7 +449,7 @@ struct TMethodDescriptor
using TReq##method##Ptr = ::NYT::TIntrusivePtr<TReq##method>; \
using TErrorOrRsp##method##Ptr = ::NYT::TErrorOr<TRsp##method##Ptr>; \
\
- TReq##method##Ptr method() \
+ TReq##method##Ptr method() const \
{ \
static const auto Descriptor = ::NYT::NRpc::TMethodDescriptor(#method) __VA_ARGS__; \
return CreateRequest<TReq##method>(Descriptor); \
@@ -482,7 +482,7 @@ protected:
const TServiceDescriptor& descriptor);
template <class T>
- TIntrusivePtr<T> CreateRequest(const TMethodDescriptor& methodDescriptor);
+ TIntrusivePtr<T> CreateRequest(const TMethodDescriptor& methodDescriptor) const;
};
////////////////////////////////////////////////////////////////////////////////