Permalink
Browse files

Moved some of the defines into a hrl.

  • Loading branch information...
amduser committed Apr 10, 2012
1 parent 810b827 commit 89679b529d4f8bef1c70add3117b62ddaf4ebbd1
Showing with 18 additions and 4 deletions.
  1. +17 −0 include/rabbitmq_http.hrl
  2. +1 −4 src/rabbitmq_http_worker.erl
View
@@ -0,0 +1,17 @@
+%%
+%% @doc RabbitMQ HTTP
+%% @author Alex Haro <alex@life360.com>
+%%
+%% See LICENSE for license information.
+%% Copyright (c) 2012 Life360
+%%
+
+-ifndef(RABBITMQ_HTTP_HRL).
+-define(RABBITMQ_HTTP_HRL, true).
+
+-include_lib("amqp_client/include/amqp_client.hrl").
+
+-define(MQ_EXCHANGE, <<"rabbitmq_http.topic">>).
+-define(MQ_TYPE, <<"topic">>).
+
+-endif.
@@ -13,13 +13,10 @@
-export([dispatch_request/2]).
-export([start_link/0, 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("rabbitmq_http.hrl").
-record(state, {channel}).
--define(MQ_EXCHANGE, <<"rabbitmq_http.topic">>).
--define(MQ_TYPE, <<"topic">>).
-
start_link() ->
gen_server:start_link({global, ?MODULE}, ?MODULE, [], []).

0 comments on commit 89679b5

Please sign in to comment.