summaryrefslogtreecommitdiff
path: root/src/index.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-05-05 21:07:31 +0200
committerLinus Nordberg <linus@nordberg.se>2015-05-05 21:07:31 +0200
commit4debec0f967d429f3cc9011eff898bc5e5585bda (patch)
treec2631aa6318660c0392985266a2a00ee1985c562 /src/index.erl
parentbbccb14d1be52a3375b44da7c68323c30c0ce985 (diff)
Dialyzer clean.
Diffstat (limited to 'src/index.erl')
-rw-r--r--src/index.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.erl b/src/index.erl
index e4979b3..a91c17c 100644
--- a/src/index.erl
+++ b/src/index.erl
@@ -78,7 +78,7 @@ add(Basepath, Index, Entry, Syncflag) when is_binary(Entry), size(Entry) == ?ENT
sync(Basepath) ->
util:fsync([Basepath, filename:dirname(Basepath)]).
--spec addlast_nosync(string(), integer()) -> ok.
+-spec addlast_nosync(string(), binary()) -> ok.
addlast_nosync(Basepath, Entry) ->
add_nosync(Basepath, last, Entry).
@@ -115,7 +115,7 @@ get(Basepath, Index) ->
Entry
end.
--spec getrange(string(), integer(), integer()) -> [binary()].
+-spec getrange(string(), integer(), integer()) -> [binary()] | noentry.
getrange(Basepath, Start, End) when Start =< End ->
lager:debug("path ~p start ~p end ~p", [Basepath, Start, End]),
case file:open(Basepath, [read, binary]) of