modify plugin name

This commit is contained in:
2022-06-22 19:16:07 +08:00
parent 0c4c973570
commit c880992006
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ class Server extends HttpService
*/
protected function onWorkerListener(): void
{
$this->provider->on(OnWorkerStop::class, '\Swoole\Timer::clearAll');
$this->provider->on(OnWorkerStop::class, '\Swoole\Timer::clearAll', 9999);
$this->provider->on(OnWorkerStart::class, [$this, 'setWorkerName']);
$this->provider->on(OnTaskerStart::class, [$this, 'setTaskerName']);
}