Skip to content

Commit

Permalink
Fix param type error
Browse files Browse the repository at this point in the history
Fix #288
  • Loading branch information
sy-records authored and yunwuxin committed Jan 11, 2022
1 parent a143bc8 commit a61c26c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/concerns/InteractsWithServer.php
Expand Up @@ -59,7 +59,7 @@ public function start(string $envName): void
$this->addHotUpdateProcess();
}

$pool = new Pool(count($this->startFuncMap), SWOOLE_IPC_UNIXSOCK, null, true);
$pool = new Pool(count($this->startFuncMap), SWOOLE_IPC_UNIXSOCK, 0, true);

$pool->on(Constant::EVENT_WORKER_START, function ($pool, $workerId) use ($envName) {

Expand Down
4 changes: 2 additions & 2 deletions src/coroutine/Context.php
Expand Up @@ -11,10 +11,10 @@ class Context

/**
* 获取协程上下文
* @param null $cid
* @param int $cid
* @return Coroutine\Context
*/
public static function get($cid = null)
public static function get($cid = 0)
{
return Coroutine::getContext($cid);
}
Expand Down

0 comments on commit a61c26c

Please sign in to comment.