From 24c33edef8efa47aa085f1d295c6a1ea3d2f0985 Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Sun, 16 Apr 2023 19:08:04 -0700 Subject: [PATCH] Removed sleep that was slowing replies down. --- packages/jupyter-ai/jupyter_ai/reply_processor.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/jupyter-ai/jupyter_ai/reply_processor.py b/packages/jupyter-ai/jupyter_ai/reply_processor.py index 4ff4ed9fe..3df2bfb71 100644 --- a/packages/jupyter-ai/jupyter_ai/reply_processor.py +++ b/packages/jupyter-ai/jupyter_ai/reply_processor.py @@ -23,7 +23,4 @@ def process(self, message): async def start(self): while True: - if not self.queue.empty(): - self.process(await self.queue.get_async()) - - await asyncio.sleep(5) + self.process(await self.queue.get_async())