Commits

Anonymous committed cb2b9fa

use node() instead of hardcoded 'rabbit' node name

Comments (0)

Files changed (1)

src/bql_applicator.erl

 
 apply_commands(Commands, User, VHost) ->
     % Create a connection to the Rabbit node
-    Node = rabbit_misc:makenode("rabbit"),
+    Node = rabbit_misc:makenode(node()),
 
     {ok, [catch apply_command(Command, #state {node = Node, user = User, vhost = VHost}) 
             || Command <- Commands]}.