改名
This commit is contained in:
@@ -41,13 +41,16 @@ class ZookeeperProcess extends Process
|
||||
* @throws ReflectionException
|
||||
* @throws ComponentException
|
||||
* @throws NotFindClassException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function onHandler(\Swoole\Process $process): void
|
||||
{
|
||||
$crontab = Snowflake::app()->get('crontab');
|
||||
$crontab->clearAll();
|
||||
|
||||
if (Snowflake::getPlatform()->isLinux()) {
|
||||
$process->name('Crontab zookeeper.');
|
||||
}
|
||||
Timer::tick(1000, function () {
|
||||
$startTime = time();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user