Commit 51ede96d authored by zhuwenwen's avatar zhuwenwen
Browse files

fix index of break

parent 9663a03f
......@@ -426,7 +426,7 @@ class Scheduler(SchedulerInterface):
if not preempted_reqs:
while self.waiting and token_budget > 0:
if len(self.running) == self.max_num_running_reqs:
break
break
request = self.waiting.peek_request()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment