Skip to content

Commit

Permalink
Quick update to add undefined to the rabbitmq server location
Browse files Browse the repository at this point in the history
  • Loading branch information
auser committed Aug 17, 2009
1 parent 86395ca commit 377faa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ebin/alice.app
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{env, [
{port, 9999},
{log_path, "./logs/alice.log"},
{rabbithost, "localhost"}
{rabbithost, undefined}
]},
{registered, [alice_app, alice_log, rest_app, rest_server]},
{applications, [kernel, stdlib]},
Expand Down
2 changes: 1 addition & 1 deletion include/config.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{port, 9999}.
{module, alice}.
{log_path, "logs/alice.log"}.
{rabbithost, "localhost"}.
{rabbithost, undefined}.
1 change: 1 addition & 0 deletions src/utils/rabint.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rpc_call(Mod, Fun, Args) -> rpc:call(rabbit_node(), Mod, Fun, Args, ?RPC_TIMEOU
rabbit_node() ->
case application:get_env(alice, rabbithost) of
undefined -> localnode(rabbit);
{ok, undefined} -> localnode(rabbit);
{ok, Hostname} -> rabbit_node(Hostname)
end.

Expand Down

0 comments on commit 377faa5

Please sign in to comment.