diff options
author | Magnus Ahltorp <map@kth.se> | 2015-03-08 12:40:34 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2015-03-08 12:40:34 +0100 |
commit | 5b0b390b9336c1992b076da6f2aa8a115970f0ef (patch) | |
tree | 64ebe9574a523a98765f70229b5328ca4a9e3866 /src/ht.erl | |
parent | 77abd79f0909ac0eec03c04a783adcd23be078c5 (diff) |
Make ht:leaf_hash/1 non-synchronousextsign2
Diffstat (limited to 'src/ht.erl')
-rw-r--r-- | src/ht.erl | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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}; |