This commit is contained in:
2021-03-29 10:39:36 +08:00
parent 279da38381
commit 38748d1f8c
+3
View File
@@ -23,10 +23,13 @@ class Consumer extends Process
/**
* @param \Swoole\Process $process
* @throws Exception
*/
public function onHandler(\Swoole\Process $process): void
{
if (Snowflake::getPlatform()->isLinux()) {
$process->name('Crontab consumer');
}
$this->channel = new Coroutine\Channel(2000);
go(function () {