diff options
author | Alex Auvolat <alex@adnab.me> | 2018-09-01 15:04:53 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-09-01 15:04:53 +0200 |
commit | 0b5d43e1857e541af58575a7e1c2bbe729436b15 (patch) | |
tree | bad42b507d5195d6c5d5418bd1b9fe0cccbe9b8c /lib/app/blockstore.ex | |
parent | e7e255682a81f4212171051bb59d0fedd0e88d3e (diff) | |
download | shard-0b5d43e1857e541af58575a7e1c2bbe729436b15.tar.gz shard-0b5d43e1857e541af58575a7e1c2bbe729436b15.zip |
Implement merge for Merkle search tree, not yet working over network
Diffstat (limited to 'lib/app/blockstore.ex')
-rw-r--r-- | lib/app/blockstore.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/app/blockstore.ex b/lib/app/blockstore.ex index 1523a44..4bef0b5 100644 --- a/lib/app/blockstore.ex +++ b/lib/app/blockstore.ex @@ -125,7 +125,11 @@ defmodule SApp.BlockStore do end def get(store, hash) do - GenServer.call(store.pid, {:get, hash, store.prefer_ask}) + try do + GenServer.call(store.pid, {:get, hash, store.prefer_ask}) + catch + :exit, {:timeout, _} -> nil + end end def copy(store, other_store, hash) do |