Skip to content

Commit

Permalink
smol lint fix [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Dec 13, 2024
1 parent 7b3fc82 commit c888180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute/src/workers/workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c888180

Please sign in to comment.