summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-10-13 17:02:59 +0200
committerLinus Nordberg <linus@nordu.net>2015-11-11 13:32:37 +0100
commite77934418082facf6c4b3566100b108b26e4119d (patch)
treea63407f52b3bf0e0ce5197086fd9ccef3dbd87d3 /src/plop.erl
parentbf942e436439cad802a04d4d971f47aa378bc482 (diff)
Move timeouts to separate include file
Diffstat (limited to 'src/plop.erl')
-rw-r--r--src/plop.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plop.erl b/src/plop.erl
index b812e4a..8bde3db 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -34,6 +34,7 @@
-import(stacktrace, [call/2]).
-include("plop.hrl").
%%-include("db.hrl").
+-include("timeouts.hrl").
-include_lib("public_key/include/public_key.hrl").
%%%%% moved from plop.hrl, maybe remove
@@ -279,7 +280,7 @@ store_loop(TreeLeafHash, Requests, RepliesUntilQuorum) ->
end
end
after
- 2000 ->
+ ?PLOP_STORAGE_QUORUM_TIMEOUT ->
lager:error("leafhash ~s: storage failed: " ++
"~p replies until quorum, nodes left: ~p",
[mochihex:to_hex(TreeLeafHash), RepliesUntilQuorum,