aboutsummaryrefslogtreecommitdiff
path: root/lib/app
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-09-01 15:28:05 +0200
committerAlex Auvolat <alex@adnab.me>2018-09-01 15:28:05 +0200
commitdd078cfecbe07f1e4d4e002467707ed53aeff180 (patch)
tree0a2af29409942e62f42e50b534688c21c5579ee6 /lib/app
parent0b5d43e1857e541af58575a7e1c2bbe729436b15 (diff)
downloadshard-dd078cfecbe07f1e4d4e002467707ed53aeff180.tar.gz
shard-dd078cfecbe07f1e4d4e002467707ed53aeff180.zip
Make merkle search tree work over network
Diffstat (limited to 'lib/app')
-rw-r--r--lib/app/blockstore.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/app/blockstore.ex b/lib/app/blockstore.ex
index 4bef0b5..8e4fddc 100644
--- a/lib/app/blockstore.ex
+++ b/lib/app/blockstore.ex
@@ -112,7 +112,7 @@ defmodule SApp.BlockStore do
peers = :ets.lookup(:shard_peer_db, state.shard_id)
|> Enum.shuffle
|> Enum.take(3)
- for peer <- peers do
+ for {_, peer} <- peers do
Shard.Manager.send(peer, {state.shard_id, state.path, {:get, key}})
end
end