aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2023-03-03 14:36:46 +0300
committerdcherednik <dcherednik@ydb.tech>2023-03-03 14:36:46 +0300
commitf1ffc3be33cb3b04615fdb9a2c8f4f8aec4f5ac6 (patch)
tree9e5a350cff8526c82e0e8959afc3268be107942d
parentf8de1c2153896b5f9eac18e8e4442f59853bdae2 (diff)
downloadydb-f1ffc3be33cb3b04615fdb9a2c8f4f8aec4f5ac6.tar.gz
Remove extra TString copy for GetPeer() call.
-rw-r--r--library/cpp/grpc/server/grpc_async_ctx_base.h2
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 {