Linter fixes
This commit is contained in:
parent
9e4a65605c
commit
390f407eb5
|
@ -96,7 +96,7 @@ $pools = $register->get('pools');
|
||||||
$connection = $pools->get('queue')->pop()->getResource();
|
$connection = $pools->get('queue')->pop()->getResource();
|
||||||
$workerNumber = swoole_cpu_num() * intval(App::getEnv('_APP_WORKER_PER_CORE', 6));
|
$workerNumber = swoole_cpu_num() * intval(App::getEnv('_APP_WORKER_PER_CORE', 6));
|
||||||
|
|
||||||
if(empty(App::getEnv('QUEUE'))) {
|
if (empty(App::getEnv('QUEUE'))) {
|
||||||
throw new Exception('Please configure "QUEUE" environemnt variable.');
|
throw new Exception('Please configure "QUEUE" environemnt variable.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue