From 497c0b3eece8537a80722192ffcbc21f25f8a0bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 20 Feb 2021 13:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Node.php | 4 +--- System/Pool/Timeout.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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; }