mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-22 04:35:50 +00:00
don't create strands for cache download. output cache info in server_info
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <backend/SimpleCache.h>
|
||||
namespace Backend {
|
||||
uint32_t
|
||||
SimpleCache::latestLedgerSequence()
|
||||
SimpleCache::latestLedgerSequence() const
|
||||
{
|
||||
std::shared_lock lck{mtx_};
|
||||
return latestSeq_;
|
||||
@@ -91,12 +91,12 @@ SimpleCache::setFull()
|
||||
}
|
||||
|
||||
bool
|
||||
SimpleCache::isFull()
|
||||
SimpleCache::isFull() const
|
||||
{
|
||||
return full_;
|
||||
}
|
||||
size_t
|
||||
SimpleCache::size()
|
||||
SimpleCache::size() const
|
||||
{
|
||||
std::shared_lock lck{mtx_};
|
||||
return map_.size();
|
||||
|
||||
Reference in New Issue
Block a user