examples/connection/disabled_automatic_recovery.rb in bunny-2.11.0.pre1 vs examples/connection/disabled_automatic_recovery.rb in bunny-2.11.0
- old
+ new
@@ -6,10 +6,10 @@
$:.unshift(File.expand_path("../../../lib", __FILE__))
require 'bunny'
-conn = Bunny.new(:heartbeat_interval => 8, :automatically_recover => false)
+conn = Bunny.new(heartbeat_timeout: 8, automatically_recover: false)
conn.start
ch = conn.create_channel
x = ch.topic("bunny.examples.recovery.topic", :durable => false)
q = ch.queue("bunny.examples.recovery.client_named_queue2", :durable => true)