Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from Gsantomaggio/rabbitmq-vshovel-dependency
Browse files Browse the repository at this point in the history
Add rabbitmq dependency
  • Loading branch information
carlhoerberg authored Jun 9, 2017
2 parents f489607 + 48636a3 commit 49296a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ define PROJECT_APP_EXTRA_KEYS
{broker_version_requirements, []}
endef

DEPS = amqp_client
DEPS = amqp_client rabbit
TEST_DEPS = amqp_client rabbitmq_ct_helpers rabbitmq_ct_client_helpers gun
LOCAL_DEPS = public_key crypto ssl inets

dep_amqp_client = git https://github.com/rabbitmq/rabbitmq-erlang-client rabbitmq_v3_6_5
dep_amqp_client = git https://github.com/rabbitmq/rabbitmq-erlang-client stable
dep_rabbit = git https://github.com/rabbitmq/rabbitmq-server stable

DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk

Expand Down
2 changes: 1 addition & 1 deletion src/rabbit_vshovel_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ publish(Tag, Method, Msg, State = #state{inbound_ch = InboundChan,
end).

make_conn_and_chan(URIs) ->
URI = lists:nth(random:uniform(length(URIs)), URIs),
URI = lists:nth(rand_compat:uniform(length(URIs)), URIs),
{ok, AmqpParam} = amqp_uri:parse(URI),
{ok, Conn} = amqp_connection:start(AmqpParam),
link(Conn),
Expand Down

0 comments on commit 49296a9

Please sign in to comment.