From 5b0b390b9336c1992b076da6f2aa8a115970f0ef Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Sun, 8 Mar 2015 12:40:34 +0100 Subject: Make ht:leaf_hash/1 non-synchronous --- src/ht.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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}; -- cgit v1.1