mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-24 21:55:56 +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
@@ -46,20 +46,17 @@ ExampleObjectsMigrator::runMigration(std::shared_ptr<Backend> const& backend, ut
|
||||
std::unordered_set<ripple::uint256> idx;
|
||||
migration::cassandra::impl::ObjectsScanner scanner(
|
||||
{.ctxThreadsNum = ctxFullScanThreads, .jobsNum = jobsFullScan, .cursorsPerJob = cursorPerJobsFullScan},
|
||||
migration::cassandra::impl::ObjectsAdapter(
|
||||
backend,
|
||||
[&](std::uint32_t, std::optional<ripple::SLE> sle) {
|
||||
if (sle.has_value()) {
|
||||
if (sle->getType() == ripple::ltACCOUNT_ROOT) {
|
||||
if (!idx.contains(sle->key())) {
|
||||
ExampleObjectsMigrator::accountCount++;
|
||||
}
|
||||
migration::cassandra::impl::ObjectsAdapter(backend, [&](std::uint32_t, std::optional<ripple::SLE> sle) {
|
||||
if (sle.has_value()) {
|
||||
if (sle->getType() == ripple::ltACCOUNT_ROOT) {
|
||||
if (!idx.contains(sle->key())) {
|
||||
ExampleObjectsMigrator::accountCount++;
|
||||
}
|
||||
idx.insert(sle->key());
|
||||
ExampleObjectsMigrator::count++;
|
||||
}
|
||||
idx.insert(sle->key());
|
||||
ExampleObjectsMigrator::count++;
|
||||
}
|
||||
)
|
||||
})
|
||||
);
|
||||
scanner.wait();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user