From 0a77c09779cdf9a2af6d75ac4a3a225ca8ae38c3 Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Thu, 30 Oct 2014 11:29:06 +0900 Subject: [PATCH] Fix non-TEST compilation problem --- prototype/poc-machi/src/machi_chain_manager1.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prototype/poc-machi/src/machi_chain_manager1.erl b/prototype/poc-machi/src/machi_chain_manager1.erl index 3d6fe50..9dbb643 100644 --- a/prototype/poc-machi/src/machi_chain_manager1.erl +++ b/prototype/poc-machi/src/machi_chain_manager1.erl @@ -68,13 +68,13 @@ ping(Pid) -> calculate_projection_internal_old(Pid) -> gen_server:call(Pid, {calculate_projection_internal_old}, infinity). -test_write_proposed_projection(Pid) -> - gen_server:call(Pid, {test_write_proposed_projection}, infinity). - -ifdef(TEST). %% Test/debugging code only. +test_write_proposed_projection(Pid) -> + gen_server:call(Pid, {test_write_proposed_projection}, infinity). + %% Calculate a projection and return it to us. %% If KeepRunenvP is true, the server will retain its change in its %% runtime environment, e.g., changes in simulated network partitions. @@ -459,7 +459,7 @@ rank_and_sort_projections(Ps, CurrentProj) -> Proj#projection.epoch_number == Epoch], %% Sort with highest rank first (custom sort) lists:sort(fun({RankA,_}, {RankB,_}) -> RankA > RankB end, - rank_projections(MaxPs, CurrentProj)). + rank_projections(MaxPs, CurrentProj)). %% Caller must ensure all Projs are of the same epoch number.