From 04c6f51258fbca49b4b5b194a9340e3498380676 Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Mon, 21 Oct 2024 15:55:38 +0200 Subject: [PATCH] feat(trtllm): rewrite health to not account for current state --- backends/trtllm/src/looper.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backends/trtllm/src/looper.rs b/backends/trtllm/src/looper.rs index 95ba16a9..a97e6428 100644 --- a/backends/trtllm/src/looper.rs +++ b/backends/trtllm/src/looper.rs @@ -387,9 +387,7 @@ impl Backend for TensorRtLlmBackendV2 { } } - async fn health(&self, current_health: bool) -> bool { - current_health - & !self.executor_looper.is_finished() - & !self.post_processor_looper.is_finished() + async fn health(&self, _: bool) -> bool { + !self.executor_looper.is_finished() & !self.post_processor_looper.is_finished() } }