This commit is contained in:
as2252258@163.com
2021-04-12 03:04:42 +08:00
parent f0b014b4db
commit e3ba5a29b7
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ class Zookeeper extends Process
private function dispatch($server, $redis, $setting, $value)
{
$server->sendMessage(swoole_serialize([
'action' => 'crontab', 'handler' => swoole_unserialize($redis->get('crontab:' . md5($value)))
'action' => 'crontab', 'handler' => swoole_unserialize($redis->get('crontab:' . $value))
]), random_int(0, $setting - 1));
$redis->del('crontab:' . md5($value));
$redis->del('crontab:' . $value);
}