clang-format (#86)

* clang-format

* ignore clang-format commit; run clang-format in github actions
This commit is contained in:
Michael Legleux
2022-01-24 12:26:53 -08:00
committed by GitHub
parent 54a21481d8
commit bdfd07f154
26 changed files with 236 additions and 163 deletions

View File

@@ -1,14 +1,13 @@
#include <rpc/Counters.h>
namespace RPC
{
namespace RPC {
void
Counters::initializeCounter(std::string const& method)
{
std::shared_lock lk(mutex_);
if(methodInfo_.count(method) == 0)
{
if (methodInfo_.count(method) == 0)
{
lk.unlock();
std::unique_lock ulk(mutex_);
@@ -57,7 +56,7 @@ Counters::report()
{
std::shared_lock lk(mutex_);
boost::json::object obj = {};
for (auto const& [method, info] : methodInfo_)
{
boost::json::object counters = {};
@@ -73,4 +72,4 @@ Counters::report()
return obj;
}
} // namespace RPC
} // namespace RPC