Skip to content

Commit

Permalink
🔥 remove events
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfog committed Oct 20, 2019
1 parent 4048182 commit fb8406c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions RoadRunnerWorker.php
Expand Up @@ -15,10 +15,6 @@
*/
class RoadRunnerWorker
{
const EVENT_LOOP_FINAL = 'rr.request.final';
const EVENT_LOOP_AFTER_RESPOND = 'rr.request.after_respond';
const EVENT_LOOP_ERROR = 'rr.request.error';

/**
* @var PSR7Client
*/
Expand Down Expand Up @@ -67,12 +63,8 @@ protected function loop()
$resp = $this->app->handle($req);

$this->psr7->respond($resp);
$this->app->getEventsHub()->dispatch(static::EVENT_LOOP_AFTER_RESPOND);
} catch (\Throwable $e) {
$this->psr7->getWorker()->error((string)$e);
$this->app->getEventsHub()->dispatch(static::EVENT_LOOP_ERROR);
} finally {
$this->app->getEventsHub()->dispatch(static::EVENT_LOOP_FINAL);
}

$reqCount++;
Expand Down

0 comments on commit fb8406c

Please sign in to comment.