blob: b7555c1d0accd4d1a3b06562705164352a27d2eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
-module(dreyfus_config).
-export([data/0, get/1]).
data() ->
try
config:get("dreyfus_blacklist")
catch error:badarg ->
% lazy workaround to address issue with epi invocation on startup
[]
end.
get(Key) ->
Handle = couch_epi:get_handle({dreyfus, black_list}),
couch_epi:get_value(Handle, dreyfus, Key).
|