This commit is contained in:
2021-04-28 12:08:57 +08:00
parent 872e1a4ea0
commit 5bb83c6bb1
+1 -2
View File
@@ -62,7 +62,7 @@ class Zookeeper extends Process
*/ */
public function onHandler(\Swoole\Process $process): void public function onHandler(\Swoole\Process $process): void
{ {
Timer::tick(80, [$this, 'loop']); Timer::tick(100, [$this, 'loop']);
} }
@@ -75,7 +75,6 @@ class Zookeeper extends Process
$redis = Snowflake::app()->getRedis(); $redis = Snowflake::app()->getRedis();
defer(fn() => $redis->release()); defer(fn() => $redis->release());
$range = $this->loadCarobTask($redis); $range = $this->loadCarobTask($redis);
var_dump($range);
foreach ($range as $value) { foreach ($range as $value) {
$this->dispatch($redis, $value); $this->dispatch($redis, $value);
} }