改名
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user