From 9044547ef0d1c98ecd909d1c0ae022dd100f6e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 11:51:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Crontab/Zookeeper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/System/Crontab/Zookeeper.php b/System/Crontab/Zookeeper.php index b7bcd0c8..06287084 100644 --- a/System/Crontab/Zookeeper.php +++ b/System/Crontab/Zookeeper.php @@ -63,14 +63,13 @@ class Zookeeper extends Process */ public function onHandler(\Swoole\Process $process): void { - $ticker = Config::get('crontab.ticker', 100) / 1000; $redis = Snowflake::app()->getRedis(); while (true) { $range = $this->loadCarobTask($redis); foreach ($range as $value) { $this->dispatch($redis, $value); } - Coroutine::sleep($ticker); + Coroutine::sleep(100); } }