Rakefile in beanstalkd_view-1.2.12 vs Rakefile in beanstalkd_view-2.0.0
- old
+ new
@@ -17,11 +17,11 @@
# Randomly enqueue elements to test queues
task :enqueue_test do
host = "localhost"
port = 11300
- beanstalk = Beaneater::Pool.new([ "#{host}:#{port}" ])
+ beanstalk = Beaneater.new("#{host}:#{port}")
# Loop flooding the queues with jobs
while true
tube_name = TEST_QUEUES.sample
pri = 65536
@@ -35,10 +35,10 @@
# Randomly pull elements from test queues
task :pull_test do
host = "localhost"
port = 11300
- beanstalk = Beaneater::Pool.new([ "#{host}:#{port}" ])
+ beanstalk = Beaneater.new("#{host}:#{port}")
while true
tube_name = TEST_QUEUES.sample
begin
beanstalk.tubes.watch!(tube_name)
\ No newline at end of file