Skip to content

Commit d69238b

Browse files
committed
refactor(macos): remove unused health snapshot wrapper
1 parent 66daff7 commit d69238b

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎apps/macos/Sources/OpenClaw/GatewayConnection.swift‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,14 +1418,6 @@ extension GatewayConnection {
14181418

14191419
// MARK: - Health
14201420

1421-
func healthSnapshot(timeoutMs: Double? = nil) async throws -> HealthSnapshot {
1422-
let data = try await requestRaw(method: .health, timeoutMs: timeoutMs)
1423-
if let snap = decodeHealthSnapshot(from: data) {
1424-
return snap
1425-
}
1426-
throw GatewayDecodingError(method: Method.health.rawValue, message: "failed to decode health snapshot")
1427-
}
1428-
14291421
func healthOK(timeoutMs: Int = 8000) async throws -> Bool {
14301422
let data = try await requestRaw(method: .health, timeoutMs: Double(timeoutMs))
14311423
return (try? self.decoder.decode(OpenClawGatewayHealthOK.self, from: data))?.ok ?? true

0 commit comments

Comments
 (0)