Skip to content
Browse files

added fake session

  • Loading branch information...
1 parent c1ede87 commit bcf4b783be040bbccb58db5ec5053d8176139db6 @miyagawa committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 eg/demo.pl
View
1 eg/demo.pl
@@ -70,6 +70,7 @@ sub get {
my $mq = Tatsumaki::MessageQueue->instance($channel);
my $session = $self->request->param('session')
or Tatsumaki::Error::HTTP->throw(500, "'session' needed");
+ $session = rand(1) if $session eq 'dummy'; # for benchmarking stuff
$mq->poll_once($session, sub { $self->on_new_event(@_) });
}

0 comments on commit bcf4b78

Please sign in to comment.
Something went wrong with that request. Please try again.