example/ex03.rb in asir_beanstalk-1.2.0 vs example/ex03.rb in asir_beanstalk-1.2.3
- old
+ new
@@ -4,10 +4,10 @@
require 'example_helper'
require 'asir/transport/beanstalk'
require 'asir/transport/buffer'
begin
t =
- ASIR::Transport::Beanstalk.new(:address => '127.0.0.1', :port => 30917)
+ ASIR::Transport::Beanstalk.new(:uri => "beanstalk://127.0.0.1:30917/other")
t.encoder =
ASIR::Coder::Marshal.new
t.start_conduit!; sleep 1
DelayedService.asir.transport =
t0 = ASIR::Transport::Buffer.new(:transport => t)