examples/client_reverse.rb in gearman-ruby-3.0.2 vs examples/client_reverse.rb in gearman-ruby-3.0.3

- old
+ new

@@ -5,11 +5,11 @@ # Client using Gearman SUBMIT_JOB_EPOCH (currently requires the gearmand branch lp:~jewart/gearmand/scheduled_jobs_support/) t = nil threadcounter = 0 -client = Gearman::Client.new('localhost:4731') +client = Gearman::Client.new('localhost') myid = threadcounter threadcounter += 1 taskset = Gearman::TaskSet.new(client) @@ -20,8 +20,8 @@ task = Gearman::Task.new("reverse_string", data) puts "#{jid} #{data}" time = Time.now() + rand(120) + 10 - #task.schedule(time) + task.schedule(time) taskset.add_task(task) end