Skip to content

Commit

Permalink
type $self to the client class so that field names are checked at com…
Browse files Browse the repository at this point in the history
…pile time.

git-svn-id: http://code.sixapart.com/svn/gearman/trunk@475 011c6a6d-750f-0410-a5f6-93fdcd050bc4
  • Loading branch information
hachi committed May 14, 2010
1 parent fd5ce6b commit 97406c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Gearman/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Gearman::JobStatus;

sub new {
my ($class, %opts) = @_;
my $self = $class;
my Gearman::Client $self = $class;
$self = fields::new($class) unless ref $self;

$self->{job_servers} = [];
Expand Down

0 comments on commit 97406c1

Please sign in to comment.