modify
This commit is contained in:
@@ -169,9 +169,9 @@ abstract class Pool extends Component
|
|||||||
*/
|
*/
|
||||||
protected function getFromChannel($name, mixed $callback): mixed
|
protected function getFromChannel($name, mixed $callback): mixed
|
||||||
{
|
{
|
||||||
if (!Context::inCoroutine()) {
|
// if (!Context::inCoroutine()) {
|
||||||
return $this->createClient($name, $callback);
|
// return $this->createClient($name, $callback);
|
||||||
}
|
// }
|
||||||
if (!$this->hasItem($name)) {
|
if (!$this->hasItem($name)) {
|
||||||
$this->createByCallback($name, $callback);
|
$this->createByCallback($name, $callback);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user