From be60a4498fccbf3dd76423781fd6698fbfc25fce Mon Sep 17 00:00:00 2001 From: st-shchetinin Date: Thu, 16 Jan 2025 11:38:34 +0300 Subject: [PATCH] template --- ydb/core/tx/datashard/export_s3_uploader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ydb/core/tx/datashard/export_s3_uploader.cpp b/ydb/core/tx/datashard/export_s3_uploader.cpp index 4bd7e374a946..47c91a9aa4c8 100644 --- a/ydb/core/tx/datashard/export_s3_uploader.cpp +++ b/ydb/core/tx/datashard/export_s3_uploader.cpp @@ -223,7 +223,8 @@ class TS3Uploader: public TActorBootstrapped { this->Become(&TThis::StateUploadPermissions); } - void PutDescription(const google::protobuf::Message& desc, const TString& key, TString& checksum, const auto& stateFunc) { + template + void PutDescription(const google::protobuf::Message& desc, const TString& key, TString& checksum, T stateFunc) { google::protobuf::TextFormat::PrintToString(desc, &Buffer); if (EnableChecksums) { checksum = ComputeChecksum(Buffer);