modify
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user