Skip to content

Commit 41607f1

Browse files
authored
fix(litServe): Use asyncio.sleep instead of time.sleep (#633)
* update * update
1 parent 90d71f7 commit 41607f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/litserve/loops/continuous_batching_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ async def run(
243243
warning_counter = 0
244244

245245
# sleep to avoid starving the cpu
246-
time.sleep(0.01)
246+
await asyncio.sleep(0.01)
247247
continue
248248

249249
if responses and not isinstance(responses[0], Output):

0 commit comments

Comments
 (0)