From 2af98fc0fcbbd803a081e4fafe92e79fe02f9271 Mon Sep 17 00:00:00 2001 From: serkixenos Date: Thu, 14 Dec 2023 14:31:08 +0100 Subject: [PATCH] Code formatting --- libraries/app/api.cpp | 7 ++++--- libraries/app/database_api.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/libraries/app/api.cpp b/libraries/app/api.cpp index 13f6586b..4286a373 100644 --- a/libraries/app/api.cpp +++ b/libraries/app/api.cpp @@ -366,9 +366,10 @@ vector history_api::get_account_history(const std::str _app.elasticsearch_thread = std::make_shared("elasticsearch"); return _app.elasticsearch_thread->async([&es, &account, &stop, &limit, &start]() { - return es->get_account_history(account, stop, limit, start); - }, - "thread invoke for method " BOOST_PP_STRINGIZE(method_name)).wait(); + return es->get_account_history(account, stop, limit, start); + }, + "thread invoke for method " BOOST_PP_STRINGIZE(method_name)) + .wait(); } } diff --git a/libraries/app/database_api.cpp b/libraries/app/database_api.cpp index f3ec33f6..5ca0869b 100644 --- a/libraries/app/database_api.cpp +++ b/libraries/app/database_api.cpp @@ -2197,7 +2197,7 @@ vector database_api_impl::lookup_vote_ids(const vector &v case vote_id_type::committee: { auto itr = committee_idx.find(id); if (itr != committee_idx.end()) - result.emplace_back( variant( *itr, 2 ) ); // Depth of committee_member_object is 1, add 1 to be safe + result.emplace_back(variant(*itr, 2)); // Depth of committee_member_object is 1, add 1 to be safe else result.emplace_back(variant()); break; @@ -2205,7 +2205,7 @@ vector database_api_impl::lookup_vote_ids(const vector &v case vote_id_type::witness: { auto itr = witness_idx.find(id); if (itr != witness_idx.end()) - result.emplace_back( variant( *itr, 2 ) ); // Depth of witness_object is 1, add 1 here to be safe + result.emplace_back(variant(*itr, 2)); // Depth of witness_object is 1, add 1 here to be safe else result.emplace_back(variant()); break; @@ -2213,13 +2213,13 @@ vector database_api_impl::lookup_vote_ids(const vector &v case vote_id_type::worker: { auto itr = for_worker_idx.find(id); if (itr != for_worker_idx.end()) { - result.emplace_back( variant( *itr, 4 ) ); // Depth of worker_object is 3, add 1 here to be safe. + result.emplace_back(variant(*itr, 4)); // Depth of worker_object is 3, add 1 here to be safe. // If we want to extract the balance object inside, // need to increase this value } else { auto itr = against_worker_idx.find(id); if (itr != against_worker_idx.end()) { - result.emplace_back( variant( *itr, 4 ) ); // Depth of worker_object is 3, add 1 here to be safe. + result.emplace_back(variant(*itr, 4)); // Depth of worker_object is 3, add 1 here to be safe. // If we want to extract the balance object inside, // need to increase this value } else {