Ben Hood avatar Ben Hood committed ca073ff

Changed includes from the server to the client where appropriate

Comments (0)

Files changed (3)

src/bql_amqp_rpc_server.erl

 -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
 
 -include_lib("amqp_client/include/amqp_client.hrl").
--include_lib("rabbit_common/include/rabbit.hrl").
--include_lib("rabbit_common/include/rabbit_framing.hrl").
 
 -record(state, { channel }).
 
     Connection = lib_amqp:start_connection(),
     Ch = amqp_connection:open_channel(Connection),
     link(Ch),
-    
+
     _X = amqp_channel:call(Ch, #'exchange.declare'{exchange = ?ExchangeName, durable = true}),
     Q = lib_amqp:declare_queue(Ch, #'queue.declare'{queue = ?QueueName, durable = true}),
     _ConsumerTag = lib_amqp:subscribe(Ch, Q, self()),

test/amq_interface_test.erl

 %%
 -module(amq_interface_test).
 
--include_lib("rabbit_common/include/rabbit.hrl").
--include_lib("rabbit_common/include/rabbit_framing.hrl").
+-include_lib("amqp_client/include/amqp_client.hrl").
 -include_lib("eunit/include/eunit.hrl").
 
 submit_create_command_test() ->

test/bql_amqp_rpc_client.erl

 
 -module(bql_amqp_rpc_client).
 
--include_lib("rabbit_common/include/rabbit_framing.hrl").
--include_lib("rabbit_common/include/rabbit.hrl").
 -include_lib("amqp_client/include/amqp_client.hrl").
 
 -behaviour(gen_server).
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.