diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-09-29 13:34:21 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-09-29 13:34:21 +0300 |
commit | 0a2ddfedca3128bfee3a3798eb11efc91824b95d (patch) | |
tree | 5734dde18cbadf822686f2674d8f354a0221aabd | |
parent | 8421b01c80a333f52c006599b32b54b6a0a0bd0d (diff) | |
download | ydb-0a2ddfedca3128bfee3a3798eb11efc91824b95d.tar.gz |
Do not use Sprintf to convert long int to string.
-rw-r--r-- | ydb/core/grpc_services/base/base.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ydb/core/grpc_services/base/base.h b/ydb/core/grpc_services/base/base.h index 3908453123..75deed4da9 100644 --- a/ydb/core/grpc_services/base/base.h +++ b/ydb/core/grpc_services/base/base.h @@ -916,8 +916,7 @@ public: void SetRuHeader(ui64 ru) override { Ru = ru; - auto ruStr = Sprintf("%lu", ru); - Ctx_->AddTrailingMetadata(NYdb::YDB_CONSUMED_UNITS_HEADER, ruStr); + Ctx_->AddTrailingMetadata(NYdb::YDB_CONSUMED_UNITS_HEADER, IntToString<10>(ru)); } const TString& GetInternalToken() const override { |