This commit is contained in:
as2252258@163.com
2021-03-01 00:38:35 +08:00
parent 4b7e87aa33
commit 4982dc2104
+1 -1
View File
@@ -30,7 +30,7 @@ abstract class Process extends \Swoole\Process implements SProcess
*/ */
public function __construct($application, $name, $enable_coroutine = true) public function __construct($application, $name, $enable_coroutine = true)
{ {
parent::__construct([$this, '_load'], true, 1, $enable_coroutine); parent::__construct([$this, '_load'], false, 1, $enable_coroutine);
$this->application = $application; $this->application = $application;
Snowflake::setWorkerId($this->pid); Snowflake::setWorkerId($this->pid);
} }