diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 92979753..54facd82 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -104,9 +104,7 @@ class Node extends Application */ public function afterDispatch($response = null): mixed { - return Coroutine::create(function ($request, $response) { - (Reduce::after($this->_after))($request, $response); - }, \request(), $response); + return (Reduce::after($this->_after))(\request(), $response); } diff --git a/System/Pool/Timeout.php b/System/Pool/Timeout.php index 9d32ea4a..8c0ee5b6 100644 --- a/System/Pool/Timeout.php +++ b/System/Pool/Timeout.php @@ -17,12 +17,10 @@ trait Timeout /** - * @param $timer * @throws Exception */ - public function Heartbeat_detection($timer) + public function Heartbeat_detection() { - $this->creates = $timer; if ($this->lastTime == 0) { return; }