Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added fake session

  • Loading branch information...
commit bcf4b783be040bbccb58db5ec5053d8176139db6 1 parent c1ede87
@miyagawa authored
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(@_) });
}
Please sign in to comment.
Something went wrong with that request. Please try again.