From bc33f6987732e293b4a03c104b38d49fabd61ea5 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Mon, 27 Apr 2015 10:47:33 +0200 Subject: [PATCH] TODOs --- implementations/caching/Cache.cpp | 2 +- implementations/caching/QueueMap.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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: