summaryrefslogtreecommitdiff
path: root/src/db.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.erl')
-rw-r--r--src/db.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/db.erl b/src/db.erl
index 19f73a6..b0c6eaa 100644
--- a/src/db.erl
+++ b/src/db.erl
@@ -57,10 +57,9 @@ add(LeafHash, Data) ->
lager:debug("leafhash ~s added", [mochihex:to_hex(LeafHash)]),
ok.
--spec add_entryhash(binary(), binary()) -> ok.
+-spec add_entryhash(binary(), binary()) -> ok | differ.
add_entryhash(LeafHash, EntryHash) ->
- ok = perm:ensurefile_nosync(entryhash_root_path(), EntryHash, LeafHash),
- ok.
+ perm:ensurefile_nosync(entryhash_root_path(), EntryHash, LeafHash).
-spec add_index_nosync(binary(), non_neg_integer()) -> ok.
add_index_nosync(LeafHash, Index) ->