From d822bc44daf29466f955400b88ca1e9972307f6a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 5 Oct 2012 16:27:52 +1000 Subject: [PATCH] Fix job data in sleep example The job data takes a string here and Ruby throws "TypeError: can't convert Fixnum into String" if an integer is used. --- examples/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/client.rb b/examples/client.rb index e314c03..e69cb6d 100755 --- a/examples/client.rb +++ b/examples/client.rb @@ -8,7 +8,7 @@ client = Gearman::Client.new(servers) taskset = Gearman::TaskSet.new(client) -task = Gearman::Task.new('sleep', 20) +task = Gearman::Task.new('sleep', '20') task.on_complete {|d| puts d } taskset.add_task(task)