Skip to content

Commit c888180

Browse files
committed
smol lint fix [skip ci]
1 parent 7b3fc82 commit c888180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compute/src/workers/workflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl WorkflowsWorker {
105105
// get tasks in batch from the channel, we enter the loop if:
106106
// (1) there are no tasks, or,
107107
// (2) there are tasks less than the batch size and the channel is not empty
108-
while tasks.len() == 0 || (tasks.len() < batch_size && !self.workflow_rx.is_empty()) {
108+
while tasks.is_empty() || (tasks.len() < batch_size && !self.workflow_rx.is_empty()) {
109109
let limit = batch_size - tasks.len();
110110
match self.workflow_rx.recv_many(&mut tasks, limit).await {
111111
// 0 tasks returned means that the channel is closed

0 commit comments

Comments
 (0)