Skip to content
Permalink
Browse files
Merge pull request #17 from apache/app-env-to-config
Replace app env with config
  • Loading branch information
jaydoane committed Nov 3, 2021
2 parents 4843f37 + 41590f5 commit a91feeaa5cd092d9192a94f2fdd3996d6fc889d4
Showing 1 changed file with 2 additions and 12 deletions.
@@ -558,20 +558,10 @@ iso8601_timestamp() ->
io_lib:format(Format, [Year, Month, Date, Hour, Minute, Second, Micro]).

get_interval() ->
case application:get_env(ioq, stats_interval) of
{ok, Interval} when is_integer(Interval) ->
Interval;
_ ->
60000
end.
config:get_integer("ioq", "stats_interval", 60*1000).

get_stats_dbname() ->
case application:get_env(ioq, stats_db) of
{ok, DbName} when is_list(DbName) ->
DbName;
_ ->
"stats"
end.
config:get("ioq", "stats_db", "stats").

split(B) when is_binary(B) ->
split(B, 0, 0, []);

0 comments on commit a91feea

Please sign in to comment.