diff options
author | Magnus Ahltorp <map@kth.se> | 2015-10-13 17:02:59 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2015-10-13 17:02:59 +0200 |
commit | d03a5d7f6e5530e7b0504e491f36f2caf596302f (patch) | |
tree | 898eae2ab9d21c6a92cca225589049ab1c0f7119 /src/plop.erl | |
parent | 14322d7a7d691be30836709e6f1f842786a8170b (diff) |
Move timeouts to separate include file
Diffstat (limited to 'src/plop.erl')
-rw-r--r-- | src/plop.erl | 3 |
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, |