don't create strands for cache download. output cache info in server_info

This commit is contained in:
CJ Cobb
2022-03-16 10:40:47 -04:00
committed by CJ Cobb
parent 15505905cb
commit 16e3c87dcc
5 changed files with 13 additions and 11 deletions

View File

@@ -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();