summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-03-08 12:40:34 +0100
committerMagnus Ahltorp <map@kth.se>2015-03-08 12:40:34 +0100
commit5b0b390b9336c1992b076da6f2aa8a115970f0ef (patch)
tree64ebe9574a523a98765f70229b5328ca4a9e3866 /src
parent77abd79f0909ac0eec03c04a783adcd23be078c5 (diff)
Make ht:leaf_hash/1 non-synchronous
Diffstat (limited to 'src')
-rw-r--r--src/ht.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ht.erl b/src/ht.erl
index e3751ea..45646ce 100644
--- a/src/ht.erl
+++ b/src/ht.erl
@@ -88,7 +88,7 @@ path(I, V) ->
consistency(V1, V2) ->
call(?MODULE, {consistency, V1, V2}).
leaf_hash(Data) ->
- call(?MODULE, {leaf_hash, Data}).
+ mkleafhash(Data).
%% Testing and debugging.
testing_get_state() ->
call(?MODULE, testing_get_state).
@@ -133,8 +133,6 @@ handle_call(root, _From, State) ->
handle_call({root, Version}, _From, State) ->
{NewState, Hash} = head(State, Version),
{reply, Hash, NewState};
-handle_call({leaf_hash, Data}, _From, State) ->
- {reply, mkleafhash(Data), State};
handle_call({path, Index, Version}, _From, State) ->
{NewState, Path} = path(State, Index, Version),
{reply, Path, NewState};