diff options
Diffstat (limited to 'src/db.erl')
-rw-r--r-- | src/db.erl | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) -> |