Skip to content

Commit 540d009

Browse files
committed
Fix mistake
1 parent 2c13ea0 commit 540d009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tasks/queue_task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ impl Task for QueueTask {
5353

5454
if instances_starting.is_empty()
5555
&& (instances_ready.is_empty()
56-
|| instances_ready.get_available_slots().await? < 3)
56+
|| instances_ready.get_available_slots().await? < 1)
5757
{
5858
self.instance_provider.start_instance(template_name).await?;
5959
}
6060

6161
if let Some(instance) = instances_ready.first() {
6262
let mut available_slots = instance.get_available_slots().await;
6363

64-
while !queue.is_empty() && available_slots != 0 {
64+
while !queue.is_empty() && available_slots > 0 {
6565
if let Some(group) = queue.pop() {
6666
let group_size = group.players.len() as i32;
6767

0 commit comments

Comments
 (0)