blob: 8c908423640724e10c4459866ff8b8630e642102 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
%%% Copyright (c) 2014, NORDUnet A/S.
%%% See LICENSE for licensing information.
-module(db).
-export([get_by_indices/3]).
get_by_indices(Start, _End, _Options) when Start < 0 ->
[];
get_by_indices(Start, End, _Options) ->
case Start =< End of
true ->
B = crypto:hash(sha256, <<"bar">>),
lists:map(fun (Index) ->
{Index, B, notfetched}
end, lists:seq(Start, End));
false ->
[]
end.
|