Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Sep 23, 2024
1 parent 4d3c587 commit 2ce12d4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/ripple/app/rdb/Wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ makeWalletDB(DatabaseCon::Setup const& setup);
* @return Unique pointer to the database descriptor.
*/
std::unique_ptr<DatabaseCon>
makeTestWalletDB(
DatabaseCon::Setup const& setup,
std::string const& dbname);
makeTestWalletDB(DatabaseCon::Setup const& setup, std::string const& dbname);

/**
* @brief getManifests Loads a manifest from the wallet database and stores it
Expand Down
3 changes: 1 addition & 2 deletions src/ripple/app/rdb/backend/detail/impl/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,7 @@ saveSQLValidatedLedger(
assert(false);
}

if (ledger->info().accountHash !=
ledger->stateMap().getHash().as_uint256())
if (ledger->info().accountHash != ledger->stateMap().getHash().as_uint256())
{
JLOG(j.fatal()) << "sAL: " << ledger->info().accountHash
<< " != " << ledger->stateMap().getHash();
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/core/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Config : public BasicConfig

std::string START_LEDGER;

uint32_t RELATIONAL_DB = 0; // 0 == SQLite, 1 == LMDB
uint32_t RELATIONAL_DB = 0; // 0 == SQLite, 1 == LMDB

// Network parameters
uint32_t NETWORK_ID = 0;
Expand Down
3 changes: 2 additions & 1 deletion src/ripple/core/DatabaseCon.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ class LockedLmdbSession
{
return env_.get();
}
explicit operator bool() const
explicit
operator bool() const
{
return bool(env_);
}
Expand Down
1 change: 0 additions & 1 deletion src/ripple/core/impl/DatabaseCon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ setup_DatabaseCon(Config const& c, std::optional<beast::Journal> j)
}();
}


setup.useGlobalPragma = true;

return setup;
Expand Down

0 comments on commit 2ce12d4

Please sign in to comment.