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:
github-actions[bot]
2025-07-02 16:36:34 +01:00
committed by GitHub
parent 1fe323190a
commit cc506fd094
107 changed files with 4253 additions and 3072 deletions

View File

@@ -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();
}