Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bhimrazy committed Sep 18, 2024
1 parent efb838c commit 33e3b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/litserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ async def lifespan(self, app: FastAPI):
"the LitServer class to initialize the response queues."
)

response_queue = self.response_queues[app.response_queue_id]
response_queue = self.response_queues[self.app.response_queue_id]
response_executor = ThreadPoolExecutor(max_workers=len(self.inference_workers))
future = response_queue_to_buffer(response_queue, self.response_buffer, self.stream, response_executor)
task = loop.create_task(future)
Expand Down

0 comments on commit 33e3b12

Please sign in to comment.