From 728dfc50902297d5005bcb1f4bed8bf462dab12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 2 Mar 2021 13:54:37 +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/Events/OnWorkerStart.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 34a5e725..ff2bd8a1 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -14,8 +14,6 @@ use Snowflake\Snowflake; use Swoole\Coroutine; use Swoole\Runtime; use Swoole\Server; -use co; -use Swoole\Timer; /** * Class OnWorkerStart @@ -114,7 +112,7 @@ class OnWorkerStart extends Callback return; } - sleep(1); + Coroutine\System::sleep(1); $this->ticker(); }