From d8146031187ca9b12f2722ed58e88aa5c9313f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 12 Aug 2021 14:28:27 +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 --- rpc-service/src/Service.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rpc-service/src/Service.php b/rpc-service/src/Service.php index 1da3f1c1..112e7bbd 100644 --- a/rpc-service/src/Service.php +++ b/rpc-service/src/Service.php @@ -92,9 +92,6 @@ class Service extends \Server\Abstracts\Server */ public function onConnect(Server $server, int $fd, int $reactorId) { - defer(fn() => $this->eventDispatch->dispatch(new OnAfterRequest())); - - $this->runEvent(Constant::CONNECT, null, [$server, $fd, $reactorId]); } @@ -106,9 +103,6 @@ class Service extends \Server\Abstracts\Server */ public function onClose(Server $server, int $fd) { - defer(fn() => $this->eventDispatch->dispatch(new OnAfterRequest())); - - $this->runEvent(Constant::CLOSE, null, [$server, $fd]); } @@ -120,9 +114,6 @@ class Service extends \Server\Abstracts\Server */ public function onDisconnect(Server $server, int $fd) { - defer(fn() => $this->eventDispatch->dispatch(new OnAfterRequest())); - - $this->runEvent(Constant::DISCONNECT, null, [$server, $fd]); }