diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-07-08 09:47:08 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-07-08 09:47:08 +0200 |
| commit | 517bb4cfee699160ec62b29aab8881f2b021c361 (patch) | |
| tree | 1cf0220f14994fb1ae51e1823a79ddb54d858871 | |
| parent | this service will periodicaly check if any job is in delay queue, and move th... (diff) | |
| download | presque-517bb4cfee699160ec62b29aab8881f2b021c361.tar.gz | |
load new service
Diffstat (limited to '')
| -rw-r--r-- | lib/presque.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/presque.pm b/lib/presque.pm index e173b0d..830b0f6 100644 --- a/lib/presque.pm +++ b/lib/presque.pm @@ -6,6 +6,8 @@ use AnyEvent::Redis; use Moose; extends 'Tatsumaki::Application'; +use presque::Service; + has config => ( is => 'rw', isa => 'HashRef', @@ -49,8 +51,8 @@ sub app { '/' => h('presque::IndexHandler'), ] ); - $self->config(delete $args{config}); + $self->add_service(presque::Service->new(redis => $self->redis)); $self; } |
