diff options
author | dcherednik <dcherednik@ydb.tech> | 2023-03-03 14:36:46 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2023-03-03 14:36:46 +0300 |
commit | f1ffc3be33cb3b04615fdb9a2c8f4f8aec4f5ac6 (patch) | |
tree | 9e5a350cff8526c82e0e8959afc3268be107942d | |
parent | f8de1c2153896b5f9eac18e8e4442f59853bdae2 (diff) | |
download | ydb-f1ffc3be33cb3b04615fdb9a2c8f4f8aec4f5ac6.tar.gz |
Remove extra TString copy for GetPeer() call.
-rw-r--r-- | library/cpp/grpc/server/grpc_async_ctx_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/grpc/server/grpc_async_ctx_base.h b/library/cpp/grpc/server/grpc_async_ctx_base.h index 079bce4102..7b88c072fa 100644 --- a/library/cpp/grpc/server/grpc_async_ctx_base.h +++ b/library/cpp/grpc/server/grpc_async_ctx_base.h @@ -24,7 +24,7 @@ public: } TString GetPeerName() const { - return TString(Context.peer()); + return Context.peer(); } TInstant Deadline() const { |