Permalink
Browse files

the app is CODE, not HASH

  • Loading branch information...
1 parent 4c2fb97 commit aaa8523e78a28c098a66abe84002c2cc6e0189d9 @miyagawa committed Oct 29, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 eg/demo.pl
View
@@ -164,7 +164,7 @@ package main;
# TODO these should be an external services module
use Try::Tiny;
-my @svc;
+our @svc;
if ($ENV{TWITTER_USERNAME}) {
my $tweet_cb = sub {
my $channel = shift;
@@ -313,6 +313,5 @@ package main;
require Tatsumaki::Server;
Tatsumaki::Server->new(port => 9999)->run($app);
} else {
- $app->{_svc} = \@svc; # HACK: refcount
return $app;
}

0 comments on commit aaa8523

Please sign in to comment.