summaryrefslogtreecommitdiff
path: root/lib/Lifestream/Worker.pm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/Lifestream/Worker.pm10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Lifestream/Worker.pm b/lib/Lifestream/Worker.pm
index c22abcb..5718ad4 100644
--- a/lib/Lifestream/Worker.pm
+++ b/lib/Lifestream/Worker.pm
@@ -9,11 +9,7 @@ use Tatsumaki::HTTPClient;
use Try::Tiny;
use XML::Feed;
-has config => (
- is => "rw",
- isa => "HashRef"
-);
-
+has config => ( is => "rw", isa => "HashRef" );
has schema => (
is => 'ro',
isa => 'Lifestream::Schema',
@@ -28,10 +24,10 @@ has schema => (
sub start {
my $self = shift;
my $t;
- $t = AE::timer 0, 15, sub {
+ $t = AE::timer 0, 60, sub {
+ scalar $t;
$self->fetch_feeds;
};
- #$self->fetch_feeds();
}
sub fetch_feeds {