Skip to content

Commit

Permalink
Do not need to pass :consumer_tag in Queue#unsubscribe call because i…
Browse files Browse the repository at this point in the history
…t will be picked up from @subscription
  • Loading branch information
celldee committed Sep 17, 2009
1 parent 0358561 commit 79337d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/qrack/subscription.rb
Expand Up @@ -54,7 +54,7 @@ def start(&blk)
begin
method = client.next_method(:timeout => timeout)
rescue Qrack::ClientTimeout
queue.unsubscribe(:consumer_tag => consumer_tag)
queue.unsubscribe()
break
end

Expand All @@ -78,7 +78,7 @@ def start(&blk)

# Exit loop if message_max condition met
if (!message_max.nil? and message_count == message_max)
queue.unsubscribe(:consumer_tag => consumer_tag)
queue.unsubscribe()
break
end

Expand Down

0 comments on commit 79337d2

Please sign in to comment.