This commit is contained in:
iVampireSP.com 2023-02-09 19:57:06 +08:00
parent dd70647fa4
commit 9d7797fded
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -36,12 +36,6 @@ public function handle(): int
if ($now - $node['last_heartbeat'] > 30) {
$this->info("节点 {$node['id']} 已离线,将被清理。");
ClusterSupport::removeNode($node['id']);
if ($node['type'] == 'edge') {
// 移除前 5 个字符,即 "edge-"。
$id = substr($node['id'], 5);
ClusterSupport::removeNode($id);
}
}
}