diff -r 2218a127abd9 -r 8d9daa16ccad bin/gearman_decode_worker.pl --- a/bin/gearman_decode_worker.pl Tue Nov 11 21:35:24 2014 +0100 +++ b/bin/gearman_decode_worker.pl Sun Jan 25 22:45:57 2015 +0100 @@ -16,8 +16,8 @@ use Mojo::Base -strict; use lib 'lib'; -use Mojo::JSON; -use Mojo::Util qw(decode slurp); +use Mojo::JSON qw/decode_json/; +use Mojo::Util qw/decode slurp/; use Mojo::Loader; use File::Temp; use Gearman::Worker; @@ -47,8 +47,7 @@ $worker->register_function("dump_decode", 60, sub { my $args = $_[0]->arg; - my $json = Mojo::JSON->new(); - my $jsonin = $json->decode($args); + my $jsonin = decode_json($args); my $file = File::Temp->new(); binmode($file);