Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge pull request #6 from apache/ken-query-servers
Get the list of allowed languages from the environment
  • Loading branch information
rnewson committed Oct 17, 2019
2 parents 2cafa80 + 950f27c commit 5161e546c7c1ce7dea2bece4017c5da45ee52f61
Showing 1 changed file with 3 additions and 2 deletions.
@@ -525,8 +525,9 @@ prune_worker_table(State) ->
State#state{pruned_last = erlang:monotonic_time()}.

allowed_languages() ->
Config = config:get("query_servers") ++ config:get("native_query_servers"),
[list_to_binary(Lang) || {Lang, _Cmd} <- Config].
Config = couch_proc_manager:get_servers_from_env("COUCHDB_QUERY_SERVER_") ++
couch_proc_manager:get_servers_from_env("COUCHDB_NATIVE_QUERY_SERVER_"),
[list_to_binary(string:to_lower(Lang)) || {Lang, _Cmd} <- Config].

config(Key, Default) ->
config:get("ken", Key, Default).

0 comments on commit 5161e54

Please sign in to comment.