lib/bunny/delivery_info.rb in bunny-0.10.8 vs lib/bunny/delivery_info.rb in bunny-1.0.0.pre1
- old
+ new
@@ -1,7 +1,5 @@
-require "bunny/versioned_delivery_tag"
-
module Bunny
# Wraps {AMQ::Protocol::Basic::Deliver} to
# provide access to the delivery properties as immutable hash as
# well as methods.
class DeliveryInfo
@@ -24,10 +22,10 @@
# @private
def initialize(basic_deliver, consumer, channel)
@basic_deliver = basic_deliver
@hash = {
:consumer_tag => basic_deliver.consumer_tag,
- :delivery_tag => VersionedDeliveryTag.new(basic_deliver.delivery_tag, channel.recoveries_counter),
+ :delivery_tag => basic_deliver.delivery_tag,
:redelivered => basic_deliver.redelivered,
:exchange => basic_deliver.exchange,
:routing_key => basic_deliver.routing_key,
:consumer => consumer,
:channel => channel