From c8881807c156268b4fddab2d1c25c26063cb0a95 Mon Sep 17 00:00:00 2001 From: erhant Date: Fri, 13 Dec 2024 21:11:20 +0300 Subject: [PATCH] smol lint fix [skip ci] --- compute/src/workers/workflow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/src/workers/workflow.rs b/compute/src/workers/workflow.rs index 5dfe652..f311ab4 100644 --- a/compute/src/workers/workflow.rs +++ b/compute/src/workers/workflow.rs @@ -105,7 +105,7 @@ impl WorkflowsWorker { // get tasks in batch from the channel, we enter the loop if: // (1) there are no tasks, or, // (2) there are tasks less than the batch size and the channel is not empty - while tasks.len() == 0 || (tasks.len() < batch_size && !self.workflow_rx.is_empty()) { + while tasks.is_empty() || (tasks.len() < batch_size && !self.workflow_rx.is_empty()) { let limit = batch_size - tasks.len(); match self.workflow_rx.recv_many(&mut tasks, limit).await { // 0 tasks returned means that the channel is closed