mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
clang-tidy fix: lock_guard -> scoped_lock
This commit is contained in:
@@ -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_;
|
||||
}();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user