This commit is contained in:
as2252258@163.com
2021-04-16 01:17:37 +08:00
parent 075cdbdd21
commit 9af5b09702
+2 -12
View File
@@ -8,9 +8,7 @@ use Exception;
use Snowflake\Cache\Redis;
use Snowflake\Process\Process;
use Snowflake\Snowflake;
use Swoole\Coroutine\Channel;
use Swoole\Coroutine\WaitGroup;
use Swoole\Timer;
use Throwable;
/**
* Class Zookeeper
@@ -19,14 +17,6 @@ use Swoole\Timer;
class Zookeeper extends Process
{
/** @var Crontab[] $names */
public array $names = [];
public array $scores = [];
public array $timers = [];
/**
* @param \Swoole\Process $process
* @throws Exception
@@ -71,7 +61,7 @@ class Zookeeper extends Process
$result = $server->sendMessage($params, $workerId = random_int(0, $setting - 1));
var_dump('send crontab to ' . $workerId . ' ' . intval($result));
} catch (\Throwable $exception) {
} catch (Throwable $exception) {
logger()->addError($exception);
}