Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
revert redgrid vsn change
Browse files Browse the repository at this point in the history
  • Loading branch information
jkvor committed Sep 20, 2011
1 parent 4f44074 commit 661083d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/redgrid
Submodule redgrid updated from 237f4d to 5ff5f6
3 changes: 2 additions & 1 deletion src/logplex_app.erl
Expand Up @@ -47,7 +47,7 @@ stop(_State) ->
init([]) ->
{ok, {{one_for_one, 5, 10}, [
{logplex_db, {logplex_db, start_link, []}, permanent, 2000, worker, [logplex_db]},
{redgrid, {redgrid, start_link, [[{redis_url, os:getenv("LOGPLEX_CONFIG_REDIS_URL")}]]}, permanent, 2000, worker, [redgrid]},
{redgrid, {redgrid, start_link, []}, permanent, 2000, worker, [redgrid]},
{logplex_realtime, {logplex_realtime, start_link, [logplex_utils:redis_opts("LOGPLEX_CONFIG_REDIS_URL")]}, permanent, 2000, worker, [logplex_realtime]},
{logplex_stats, {logplex_stats, start_link, []}, permanent, 2000, worker, [logplex_stats]},

Expand Down Expand Up @@ -102,6 +102,7 @@ boot_redis() ->
setup_redgrid_vals() ->
application:load(redgrid),
application:set_env(redgrid, local_ip, os:getenv("LOCAL_IP")),
application:set_env(redgrid, redis_url, os:getenv("LOGPLEX_CONFIG_REDIS_URL")),
application:set_env(redgrid, domain, os:getenv("HEROKU_DOMAIN")),
ok.

Expand Down
1 change: 1 addition & 0 deletions src/logplex_queue.erl
Expand Up @@ -278,6 +278,7 @@ drain(Queue, N, Acc) ->
enable_producer(#state{dict=Dict, length=Length, max_length=MaxLength, accepting=Accepting}=State) ->
case Accepting of
false ->
io:format("logplex_queue event=enable_producer length=~w enable=~p~n", [Length, (Length < (MaxLength div 2))]),
case Length < (MaxLength div 2) of
true ->
case dict:find(producer_callback, Dict) of
Expand Down

0 comments on commit 661083d

Please sign in to comment.