diff --git a/services/backup/src/Reactors/server/AddAttachmentsUtility.h b/services/backup/src/Reactors/server/AddAttachmentsUtility.h --- a/services/backup/src/Reactors/server/AddAttachmentsUtility.h +++ b/services/backup/src/Reactors/server/AddAttachmentsUtility.h @@ -13,7 +13,9 @@ namespace reactor { class AddAttachmentsUtility { - std::shared_ptr moveToS3(std::shared_ptr logItem); + std::shared_ptr + moveToS3(std::shared_ptr logItem); + public: grpc::Status processRequest(const backup::AddAttachmentsRequest *request); }; diff --git a/services/backup/src/Reactors/server/AddAttachmentsUtility.cpp b/services/backup/src/Reactors/server/AddAttachmentsUtility.cpp --- a/services/backup/src/Reactors/server/AddAttachmentsUtility.cpp +++ b/services/backup/src/Reactors/server/AddAttachmentsUtility.cpp @@ -56,18 +56,19 @@ return status; } -std::shared_ptr AddAttachmentsUtility::moveToS3( - std::shared_ptr logItem) { +std::shared_ptr +AddAttachmentsUtility::moveToS3(std::shared_ptr logItem) { std::string holder = tools::generateHolder( logItem->getDataHash(), logItem->getBackupID(), logItem->getLogID()); std::string data = std::move(logItem->getValue()); - std::shared_ptr newLogItem = std::make_shared( - logItem->getBackupID(), - logItem->getLogID(), - true, - holder, - logItem->getAttachmentHolders(), - logItem->getDataHash()); + std::shared_ptr newLogItem = + std::make_shared( + logItem->getBackupID(), + logItem->getLogID(), + true, + holder, + logItem->getAttachmentHolders(), + logItem->getDataHash()); // put into S3 std::condition_variable blobPutDoneCV; std::mutex blobPutDoneCVMutex;