From 7aa6b67afdc867140c969b87e30f08257b925d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 1 Mar 2021 18:23:40 +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/Snowflake.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index a3c39329..5826cbfa 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -280,13 +280,11 @@ class Snowflake return; } - $randWorkerId = random_int(0, $server->setting['task_worker_num'] - 1); - /** @var Task $class */ $class = static::createObject($class); $class->setParams($params); - $server->task(serialize($class), $randWorkerId); + $server->task(serialize($class)); }