diff --git a/packages/shared/gpu_encoder.py b/packages/shared/gpu_encoder.py index 853eece72..c217b92cf 100644 --- a/packages/shared/gpu_encoder.py +++ b/packages/shared/gpu_encoder.py @@ -323,7 +323,6 @@ class GpuEncoderClient: raise GpuEncodeError("GPU_ENCODE_RELAY_SECRET not set") return secret - def _warm_up_if_needed(self) -> None: """POST 前预热:如果距上次成功通信超过 idle 阈值,先打 /health 打通 Tailscale 链路。 @@ -373,7 +372,8 @@ class GpuEncoderClient: first_byte_ok = True logger.debug( "[gpu-encoder] P4000 first byte in %.2fs (connect_timeout=%.1fs)", - time.time() - t0, connect_timeout, + time.time() - t0, + connect_timeout, ) # 剩余用长超时 resp.fp._sock.settimeout(ffmpeg_timeout + 60)