diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-05-05 21:07:31 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-05-05 21:07:31 +0200 |
commit | 4debec0f967d429f3cc9011eff898bc5e5585bda (patch) | |
tree | c2631aa6318660c0392985266a2a00ee1985c562 /src/index.erl | |
parent | bbccb14d1be52a3375b44da7c68323c30c0ce985 (diff) |
Dialyzer clean.
Diffstat (limited to 'src/index.erl')
-rw-r--r-- | src/index.erl | 4 |
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 |