改名
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user