From df9bfa3e644ab7342f17be53973540e626d67ea0 Mon Sep 17 00:00:00 2001 From: Manuel Rubio Date: Sun, 11 Jan 2015 14:50:20 +0100 Subject: [PATCH] remove warnings when debug is not activated --- src/cache_bucket.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cache_bucket.erl b/src/cache_bucket.erl index 4ae016a..6e359dd 100644 --- a/src/cache_bucket.erl +++ b/src/cache_bucket.erl @@ -376,11 +376,11 @@ cache_get(Key, #cache{}=S) -> %% lookup cache value cache_lookup(Key, #cache{}=S) -> case heap_lookup(Key, cache_heap:refs(S#cache.heap)) of - undefined -> + undefined -> cache_util:stats(S#cache.stats, {cache, S#cache.name, miss}), undefined; - {Heap, Val} -> - ?DEBUG("cache ~p: get ~p at cell ~p~n", [S#cache.name, Key, Heap]), + {_Heap, Val} -> + ?DEBUG("cache ~p: get ~p at cell ~p~n", [S#cache.name, Key, _Heap]), cache_util:stats(S#cache.stats, {cache, S#cache.name, hit}), Val end. @@ -391,8 +391,8 @@ cache_has(Key, #cache{}=S) -> case heap_has(Key, cache_heap:refs(S#cache.heap)) of false -> false; - Heap -> - ?DEBUG("cache ~p: has ~p at cell ~p~n", [S#cache.name, Key, Heap]), + _Heap -> + ?DEBUG("cache ~p: has ~p at cell ~p~n", [S#cache.name, Key, _Heap]), true end.