Permalink
Browse files

RabbitMQ server no longer supports "immediate" deliveries

  • Loading branch information...
1 parent 6bbbc91 commit 6d05e5e570e108284bf80478403a6f882e109c6a @tonyg committed Oct 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/rabbithub_web.erl
View
4 src/rabbithub_web.erl
@@ -483,7 +483,7 @@ extract_message(ExchangeResource, ParsedQuery, Req) ->
perform_request('POST', endpoint, '', exchange, Resource, ParsedQuery, Req) ->
Msg = extract_message(Resource, ParsedQuery, Req),
- Delivery = rabbit_basic:delivery(false, false, Msg, none),
+ Delivery = rabbit_basic:delivery(false, Msg, none),
case rabbit_basic:publish(Delivery) of
{ok, _, _} ->
Req:respond({202, [], []});
@@ -493,7 +493,7 @@ perform_request('POST', endpoint, '', exchange, Resource, ParsedQuery, Req) ->
perform_request('POST', endpoint, '', queue, Resource, ParsedQuery, Req) ->
Msg = extract_message(rabbithub:r(exchange, ""), ParsedQuery, Req),
- Delivery = rabbit_basic:delivery(false, false, Msg, none),
+ Delivery = rabbit_basic:delivery(false, Msg, none),
case rabbit_amqqueue:lookup([Resource]) of
[Queue] ->
{routed, _} = rabbit_amqqueue:deliver([Queue], Delivery),

0 comments on commit 6d05e5e

Please sign in to comment.