diff options
Diffstat (limited to 'shard/lib/app/pagestore.ex')
-rw-r--r-- | shard/lib/app/pagestore.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shard/lib/app/pagestore.ex b/shard/lib/app/pagestore.ex index 79d39b7..3f7fc0d 100644 --- a/shard/lib/app/pagestore.ex +++ b/shard/lib/app/pagestore.ex @@ -144,7 +144,7 @@ defmodule SApp.PageStore do end def handle_cast({:rec_pull, hash, ask_to}, state) do - if :dets.lookup state.store, hash == [] do + if :dets.lookup(state.store, hash) == [] do why = {:cached, System.os_time(:seconds) + @cache_ttl} init_rec_pull(state, hash, why, ask_to) end @@ -187,7 +187,7 @@ defmodule SApp.PageStore do end value = SData.term_unbin bin for dep <- SData.Page.refs value do - if :dets.lookup state.store, dep == [] do + if :dets.lookup(state.store, dep) == [] do init_rec_pull(state, dep, sub_why, [conn_pid]) end end |