examples/guides/getting_started/03_babblr.rb in amqp-0.8.0.rc8 vs examples/guides/getting_started/03_babblr.rb in amqp-0.8.0.rc9
- old
+ new
@@ -20,11 +20,11 @@
puts "#{payload} => bob"
end
exchange.publish("BOS 101, NYK 89").publish("ORL 85, ALT 88")
- # disconnect & exit after 1 second
- EventMachine.add_timer(1) do
+ # disconnect & exit after 2 seconds
+ EventMachine.add_timer(2) do
exchange.delete
connection.close {
EM.stop { exit }
}