diff options
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', |