summaryrefslogtreecommitdiff
path: root/src/db.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.erl')
-rw-r--r--src/db.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db.erl b/src/db.erl
index b0c6eaa..f53cd19 100644
--- a/src/db.erl
+++ b/src/db.erl
@@ -71,12 +71,12 @@ set_treesize(Size) ->
ok.
-spec get_by_indices(integer(), integer(), {sorted, true|false}) ->
- [{non_neg_integer(), binary(), binary()}].
+ [{non_neg_integer(), binary(), notfetched}].
get_by_indices(Start, End, {sorted, _Sorted}) ->
get_by_indices_helper(Start, End).
--spec get_by_index(binary()) -> notfound |
- {non_neg_integer(), binary(), binary()}.
+-spec get_by_index(non_neg_integer()) ->
+ {non_neg_integer(), binary(), noentry | binary()}.
get_by_index(Index) ->
LeafHash = leafhash_for_index(Index),
Entry = entry_for_leafhash(LeafHash),