mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-05 08:48:13 +00:00
style: Update pre-commit hooks (#2290)
Update versions of pre-commit hooks to latest version. Co-authored-by: mathbunnyru <12270691+mathbunnyru@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1fe323190a
commit
cc506fd094
@@ -51,15 +51,12 @@ ExampleTransactionsMigrator::runMigration(
|
||||
util::Mutex<HashSet> hashSet;
|
||||
migration::cassandra::impl::TransactionsScanner scanner(
|
||||
{.ctxThreadsNum = ctxFullScanThreads, .jobsNum = jobsFullScan, .cursorsPerJob = cursorPerJobsFullScan},
|
||||
migration::cassandra::impl::TransactionsAdapter(
|
||||
backend,
|
||||
[&](ripple::STTx const& tx, ripple::TxMeta const&) {
|
||||
hashSet.lock()->insert(ripple::to_string(tx.getTransactionID()));
|
||||
auto const json = tx.getJson(ripple::JsonOptions::none);
|
||||
auto const txType = json["TransactionType"].asString();
|
||||
backend->writeTxIndexExample(uint256ToString(tx.getTransactionID()), txType);
|
||||
}
|
||||
)
|
||||
migration::cassandra::impl::TransactionsAdapter(backend, [&](ripple::STTx const& tx, ripple::TxMeta const&) {
|
||||
hashSet.lock()->insert(ripple::to_string(tx.getTransactionID()));
|
||||
auto const json = tx.getJson(ripple::JsonOptions::none);
|
||||
auto const txType = json["TransactionType"].asString();
|
||||
backend->writeTxIndexExample(uint256ToString(tx.getTransactionID()), txType);
|
||||
})
|
||||
);
|
||||
scanner.wait();
|
||||
count = hashSet.lock()->size();
|
||||
|
||||
Reference in New Issue
Block a user