Removed debug output
This commit is contained in:
parent
c1551121c8
commit
90c7bad8d6
@ -48,8 +48,6 @@ void Cache::push(unique_ptr<Block> block) {
|
|||||||
void Cache::_popOldEntries() {
|
void Cache::_popOldEntries() {
|
||||||
lock_guard<mutex> lock(_mutex);
|
lock_guard<mutex> lock(_mutex);
|
||||||
while(_cachedBlocks.size() > 0 && _cachedBlocks.peek().ageSeconds() > PURGE_LIFETIME_SEC) {
|
while(_cachedBlocks.size() > 0 && _cachedBlocks.peek().ageSeconds() > PURGE_LIFETIME_SEC) {
|
||||||
double age = _cachedBlocks.peek().ageSeconds();
|
|
||||||
printf("Removing block with age: %f\n", age);
|
|
||||||
_cachedBlocks.pop();
|
_cachedBlocks.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user