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:
@@ -29,7 +29,10 @@
|
||||
|
||||
namespace data {
|
||||
|
||||
LedgerCacheSaver::LedgerCacheSaver(util::config::ClioConfigDefinition const& config, LedgerCacheInterface const& cache)
|
||||
LedgerCacheSaver::LedgerCacheSaver(
|
||||
util::config::ClioConfigDefinition const& config,
|
||||
LedgerCacheInterface const& cache
|
||||
)
|
||||
: cacheFilePath_(config.maybeValue<std::string>("cache.file.path"))
|
||||
, cache_(cache)
|
||||
, isAsync_(config.get<bool>("cache.file.async_save"))
|
||||
@@ -51,11 +54,14 @@ LedgerCacheSaver::save()
|
||||
}
|
||||
|
||||
LOG(util::LogService::info()) << "Saving ledger cache to " << *cacheFilePath_;
|
||||
if (auto const [success, durationMs] = util::timed([&]() { return cache_.get().saveToFile(*cacheFilePath_); });
|
||||
if (auto const [success, durationMs] =
|
||||
util::timed([&]() { return cache_.get().saveToFile(*cacheFilePath_); });
|
||||
success.has_value()) {
|
||||
LOG(util::LogService::info()) << "Successfully saved ledger cache in " << durationMs << " ms";
|
||||
LOG(util::LogService::info())
|
||||
<< "Successfully saved ledger cache in " << durationMs << " ms";
|
||||
} else {
|
||||
LOG(util::LogService::error()) << "Error saving LedgerCache to file: " << success.error();
|
||||
LOG(util::LogService::error())
|
||||
<< "Error saving LedgerCache to file: " << success.error();
|
||||
}
|
||||
});
|
||||
if (not isAsync_) {
|
||||
|
||||
Reference in New Issue
Block a user