改名
This commit is contained in:
@@ -104,9 +104,7 @@ class Node extends Application
|
|||||||
*/
|
*/
|
||||||
public function afterDispatch($response = null): mixed
|
public function afterDispatch($response = null): mixed
|
||||||
{
|
{
|
||||||
return Coroutine::create(function ($request, $response) {
|
return (Reduce::after($this->_after))(\request(), $response);
|
||||||
(Reduce::after($this->_after))($request, $response);
|
|
||||||
}, \request(), $response);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,12 +17,10 @@ trait Timeout
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $timer
|
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function Heartbeat_detection($timer)
|
public function Heartbeat_detection()
|
||||||
{
|
{
|
||||||
$this->creates = $timer;
|
|
||||||
if ($this->lastTime == 0) {
|
if ($this->lastTime == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user