~asabil/eamqp/trunk

« back to all changes in this revision

Viewing changes to src/eamqp.erl

  • Committer: Ali Sabil
  • Date: 2010-03-24 09:08:29 UTC
  • Revision ID: ali.sabil@gmail.com-20100324090829-840defv1hf7pilei
Fix eamqp:declare/2 for queues

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                arguments = Arguments
97
97
        },
98
98
 
99
 
        #'queue.declare_ok'{queue = Queue} = amqp_channel:call(Channel, QueueDeclaration),
100
 
        {ok, Queue}.
 
99
        #'queue.declare_ok'{queue = DeclaredQueue} = amqp_channel:call(Channel, QueueDeclaration),
 
100
        {ok, DeclaredQueue}.
101
101
 
102
102
%% @doc Bind a Queue to an Exchange given the RoutingKey
103
103
%% @spec declare(channel(), binary(), binary(), binary()) -> {ok, #'queue.bind'{}} | {error, term()}