mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-25 08:00:18 +00:00
style: Set clang-format width 100 (#2953)
This commit is contained in:
@@ -254,7 +254,8 @@ LedgerCache::getSuccessorHitRate() const
|
||||
{
|
||||
if (successorReqCounter_.get().value() == 0u)
|
||||
return 1;
|
||||
return static_cast<float>(successorHitCounter_.get().value()) / successorReqCounter_.get().value();
|
||||
return static_cast<float>(successorHitCounter_.get().value()) /
|
||||
successorReqCounter_.get().value();
|
||||
}
|
||||
|
||||
std::expected<void, std::string>
|
||||
@@ -266,7 +267,9 @@ LedgerCache::saveToFile(std::string const& path) const
|
||||
|
||||
impl::LedgerCacheFile file{path};
|
||||
std::shared_lock const lock{mtx_};
|
||||
impl::LedgerCacheFile::DataView const data{.latestSeq = latestSeq_, .map = map_, .deleted = deleted_};
|
||||
impl::LedgerCacheFile::DataView const data{
|
||||
.latestSeq = latestSeq_, .map = map_, .deleted = deleted_
|
||||
};
|
||||
return file.write(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user