diff options
| -rw-r--r-- | yt/yt/core/rpc/client.cpp | 4 | ||||
| -rw-r--r-- | yt/yt/core/rpc/client.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/yt/yt/core/rpc/client.cpp b/yt/yt/core/rpc/client.cpp index 95b73ed5a1e..5e95c54412c 100644 --- a/yt/yt/core/rpc/client.cpp +++ b/yt/yt/core/rpc/client.cpp @@ -748,8 +748,8 @@ TServiceDescriptor& TServiceDescriptor::SetAcceptsBaggage(bool value) //////////////////////////////////////////////////////////////////////////////// -TMethodDescriptor::TMethodDescriptor(const TString& methodName) - : MethodName(methodName) +TMethodDescriptor::TMethodDescriptor(std::string methodName) + : MethodName(std::move(methodName)) { } TMethodDescriptor& TMethodDescriptor::SetMultiplexingBand(EMultiplexingBand value) diff --git a/yt/yt/core/rpc/client.h b/yt/yt/core/rpc/client.h index 9e7ddc728a1..1ed66105905 100644 --- a/yt/yt/core/rpc/client.h +++ b/yt/yt/core/rpc/client.h @@ -444,11 +444,11 @@ struct TServiceDescriptor struct TMethodDescriptor { - TString MethodName; + std::string MethodName; EMultiplexingBand MultiplexingBand = EMultiplexingBand::Default; bool StreamingEnabled = false; - explicit TMethodDescriptor(const TString& methodName); + explicit TMethodDescriptor(std::string methodName); TMethodDescriptor& SetMultiplexingBand(EMultiplexingBand value); TMethodDescriptor& SetStreamingEnabled(bool value); |
