Fixed a bug.

This commit is contained in:
2026-06-08 07:54:55 +08:00
parent 31ef31421e
commit 8fc6c38797
+1 -2
View File
@@ -35,9 +35,8 @@ class SystemdNotifier
@enable_heartbeat @enable_heartbeat
end end
def notify(message) def self.notify(message)
return unless @enable_heartbeat return unless @enable_heartbeat
begin begin
@socket.send(message, 0) @socket.send(message, 0)
MethodExecutor.record("debug", "heartbeat", "Heartbeat sent: #{message}") MethodExecutor.record("debug", "heartbeat", "Heartbeat sent: #{message}")