Format first-party source according to .clang-format

This commit is contained in:
Pretty Printer
2020-04-17 09:56:34 -05:00
committed by manojsdoshi
parent 65dfc5d19e
commit 50760c6935
1076 changed files with 86161 additions and 77449 deletions

View File

@@ -17,16 +17,19 @@
*/
//==============================================================================
#include <ripple/nodestore/impl/DatabaseNodeImp.h>
#include <ripple/app/ledger/Ledger.h>
#include <ripple/nodestore/impl/DatabaseNodeImp.h>
#include <ripple/protocol/HashPrefix.h>
namespace ripple {
namespace NodeStore {
void
DatabaseNodeImp::store(NodeObjectType type, Blob&& data,
uint256 const& hash, std::uint32_t seq)
DatabaseNodeImp::store(
NodeObjectType type,
Blob&& data,
uint256 const& hash,
std::uint32_t seq)
{
auto nObj = NodeObject::createObject(type, std::move(data), hash);
pCache_->canonicalize_replace_cache(hash, nObj);
@@ -36,8 +39,10 @@ DatabaseNodeImp::store(NodeObjectType type, Blob&& data,
}
bool
DatabaseNodeImp::asyncFetch(uint256 const& hash,
std::uint32_t seq, std::shared_ptr<NodeObject>& object)
DatabaseNodeImp::asyncFetch(
uint256 const& hash,
std::uint32_t seq,
std::shared_ptr<NodeObject>& object)
{
// See if the object is in cache
object = pCache_->fetch(hash);
@@ -64,5 +69,5 @@ DatabaseNodeImp::sweep()
nCache_->sweep();
}
} // NodeStore
} // ripple
} // namespace NodeStore
} // namespace ripple