改名
This commit is contained in:
@@ -49,9 +49,8 @@ class OnReceive extends Callback
|
||||
{
|
||||
try {
|
||||
\Swoole\Coroutine\defer(function (){
|
||||
$event = Snowflake::app()->getEvent();
|
||||
$event->trigger(Event::SYSTEM_RESOURCE_RELEASES);
|
||||
\logger()->insert();
|
||||
fire(Event::SYSTEM_RESOURCE_RELEASES);
|
||||
\logger_insert();
|
||||
});
|
||||
$request = $this->_request($fd, $data, $reID);
|
||||
if (($node = $this->router->find_path($request)) === null) {
|
||||
@@ -71,18 +70,4 @@ class OnReceive extends Callback
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $fd
|
||||
* @param $data
|
||||
* @param $reID
|
||||
* @return Request
|
||||
* @throws ReflectionException
|
||||
* @throws NotFindClassException
|
||||
*/
|
||||
private function _request($fd, $data, $reID): Request
|
||||
{
|
||||
return Request::createListenRequest($fd, $data, $reID);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user