Updated documentation on AMQP listener function.
authorMatt Mullins <mmullins@mmlx.us>
Sun, 28 Aug 2011 20:00:30 +0000 (15:00 -0500)
committerMatt Mullins <mmullins@mmlx.us>
Sun, 28 Aug 2011 20:00:30 +0000 (15:00 -0500)
amqp/amqp_bot_listener.erl

index 8d24d8f..3fde833 100644 (file)
@@ -14,6 +14,9 @@
 %% Currently, this creates the channel to use for this -- eventually, I would
 %% like to be able to support allowing the client to undo this action, but
 %% since we're throwing away the channel reference.
+%%
+%% Note this calls basic.consume with no_ack=true, so messages are
+%% automatically removed from the queue when they occur
 listen_for_events(RoutingKeyString) ->
     {ok, Channel} = amqp_bot_connection:open_channel(),
     RoutingKeyBinary = list_to_binary(RoutingKeyString),