diff --git a/implementations/caching/Cache.cpp b/implementations/caching/Cache.cpp index e4cbac53..45b5b281 100644 --- a/implementations/caching/Cache.cpp +++ b/implementations/caching/Cache.cpp @@ -48,7 +48,7 @@ void Cache::push(unique_ptr block) { void Cache::_popOldEntries() { lock_guard lock(_mutex); while(_cachedBlocks.size() > 0 && _cachedBlocks.peek()->ageSeconds() > PURGE_LIFETIME_SEC) { - _cachedBlocks.pop(); + _cachedBlocks.pop(); } } diff --git a/implementations/caching/QueueMap.h b/implementations/caching/QueueMap.h index c8814691..e3cbb0ec 100644 --- a/implementations/caching/QueueMap.h +++ b/implementations/caching/QueueMap.h @@ -11,8 +11,7 @@ namespace blockstore { namespace caching { -//TODO Test -//TODO Move to utils +// A class that is a queue and a map at the same time. We could also see it as an addressable queue. template class QueueMap { public: