lib/quebert/backend/beanstalk.rb in quebert-1.0.1 vs lib/quebert/backend/beanstalk.rb in quebert-1.0.2
- old
+ new
@@ -27,11 +27,14 @@
last_conn.kick 1 # what? Why the 1? it kicks them all?
reserve_without_controller.delete
end
end
+ def initialize(host, *args)
+ super Array(host), *args
+ end
def self.configure(opts={})
- opts[:host] ||= '127.0.0.1:11300'
+ opts[:host] ||= ['127.0.0.1:11300']
new(opts[:host], opts[:tube])
end
end
end
end
\ No newline at end of file