diff options
author | franck cuny <franck@lumberjaph.net> | 2010-11-26 15:51:24 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-11-26 15:51:24 +0100 |
commit | 54eb5d4441e7e93e564e8f97ab62921f45863ad6 (patch) | |
tree | bf31f6eeb7823322313aa5156454c78e4105262e /lib | |
parent | add manifest (diff) | |
download | presque-worker-54eb5d4441e7e93e564e8f97ab62921f45863ad6.tar.gz |
spec is read from context master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/presque/worker.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/presque/worker.pm b/lib/presque/worker.pm index b18b30e..a347ce1 100644 --- a/lib/presque/worker.pm +++ b/lib/presque/worker.pm @@ -18,7 +18,6 @@ with qw/ presque::worker::Role::Context presque::worker::Role::Logger/; -has spore_description => ( is => 'ro', isa => 'Str', required => 1, ); has queue_name => ( is => 'rw', isa => 'Str', @@ -68,7 +67,7 @@ has rest_client => ( default => sub { my $self = shift; my $client = - Net::HTTP::Spore->new_from_spec( $self->spore_description, + Net::HTTP::Spore->new_from_spec( $self->context->{presque}->{spec}, base_url => $self->context->{presque}->{url} ); $client->enable('Format::JSON'); $client->enable( '+presque::worker::Middleware::ClientID', |