diff options
author | Alex Auvolat <alex@adnab.me> | 2018-11-07 15:14:22 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-11-07 15:14:22 +0100 |
commit | c0804534ac323b1162d3d394eda6838f63e0a582 (patch) | |
tree | bce457f103142e596a5454165d281f581db65293 /shard/lib/app/pagestore.ex | |
parent | f25929e45cfbe25bb7401c9af126d353e1eaef86 (diff) | |
download | shard-c0804534ac323b1162d3d394eda6838f63e0a582.tar.gz shard-c0804534ac323b1162d3d394eda6838f63e0a582.zip |
Fixes thanks to Dialyzer
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 |