summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ht.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ht.erl b/src/ht.erl
index a2f64f9..98b2633 100644
--- a/src/ht.erl
+++ b/src/ht.erl
@@ -96,10 +96,10 @@ add(#history_tree{version = V, store = Store}, Entry) ->
LeafHash = mkleafhash(Entry),
LayerMap = reverse([B || <<B:1>> <= binary:encode_unsigned(NewVersion)]),
#history_tree{version = NewVersion,
- store = update(ts:store(Store, {LeafIndex, 0}, LeafHash),
- 1, LayerMap,
- #inner{index = LeafIndex, layer = 0,
- hash = LeafHash})}.
+ store = update(ts:store(Store, {LeafIndex, 0}, LeafHash),
+ 1, LayerMap,
+ #inner{index = LeafIndex, layer = 0,
+ hash = LeafHash})}.
-spec tree_hash(history_tree()) -> binary().
tree_hash(Tree) ->