mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
fix(timer): 修复 F2 代码质量问题
- HostServiceBase: move Log::error before throw so it actually executes - TimerBase: remove empty comment block
This commit is contained in:
@@ -265,8 +265,6 @@ class TimerBase extends Command
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
$http->request($host . $request_item['target'], [
|
$http->request($host . $request_item['target'], [
|
||||||
'headers' => [
|
'headers' => [
|
||||||
'Host' => $site_host,
|
'Host' => $site_host,
|
||||||
|
|||||||
@@ -93,9 +93,8 @@ class HostServiceBase
|
|||||||
Log::info("已将 {$staleCount} 个过期节点标记为离线。");
|
Log::info("已将 {$staleCount} 个过期节点标记为离线。");
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw $e;
|
|
||||||
Log::error("节点 [{$nodeId}] 心跳更新失败: " . $e->getMessage());
|
Log::error("节点 [{$nodeId}] 心跳更新失败: " . $e->getMessage());
|
||||||
Log::error($e);
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user