clang-tidy fix: lock_guard -> scoped_lock

This commit is contained in:
Ed Hennis
2026-05-06 18:44:16 -04:00
parent d8134f98e9
commit 487f5a0fd3

View File

@@ -1579,7 +1579,7 @@ LedgerMaster::missingFromCompleteLedgerRange(LedgerIndex first, LedgerIndex last
{
// Make a copy of the range to avoid holding the lock
auto const range = [&] {
std::lock_guard const sl(completeLock_);
std::scoped_lock const sl(completeLock_);
return completeLedgers_;
}();