[rabbitmq-discuss] AMQP Erlang client
Jerry Kuch
jerryk at vmware.com
Sun Feb 6 18:56:44 GMT 2011
The last time I looked, even the principal web documentation on the Erlang client itself had succumbed to this bit rot as have various chunks of sample code from beyond the Rabbit team's shores (e.g. in some Github repos).
I vaguely recall either reporting this as a bug or intending to do so... In the meantime, one should tread lightly and double check assumptions with the Erlang client's own code. Most of the deviations are no more dramatic than the ones Matthew amends here.
Sent from my iPhone (Brevity and typos are hopefully the result of 1-fingered typing rather than rudeness or illiteracy).
On Feb 6, 2011, at 9:37 AM, "Matthew Sackman" <matthew at rabbitmq.com> wrote:
> On Sun, Feb 06, 2011 at 09:23:16AM -0800, Michael Vierling wrote:
>> Has the Erlang AMQP client code changed recently? We are attempting to get the metronome plugin to work. However the following code seems no longer to work:
>
> Yeah, I'm afraid the metronome plugin page thing is very badly bitrotten
> and out of date.
>
>>
>> init([]) ->
>> Connection = amqp_connection:start_direct(),
>
> That should be {ok, Connection} = amqp_connection:start(direct),
>
>> Channel = amqp_connection:open_channel(Connection),
>
> {ok, Channel} = amqp_connection:open_channel(Connection),
>
>> amqp_channel:call(Channel, #'exchange.declare'{exchange = <<"metronome">>,
>> type = <<"topic">>}),
>
> That's fine.
>
> Matthew
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list