mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Format first-party source according to .clang-format
This commit is contained in:
committed by
manojsdoshi
parent
65dfc5d19e
commit
50760c6935
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user