summaryrefslogtreecommitdiff
path: root/continuedev/src/continuedev/server
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-09 10:46:22 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-09 10:46:22 -0700
commit3629dddb1daea23fbd29b03705e742ec2a22d6ec (patch)
treee321585b7dfc443ed2bedea4d576f6fc89c5f24b /continuedev/src/continuedev/server
parente608522be7b94a4ae3afae7a1e771d663f87b748 (diff)
downloadsncontinue-3629dddb1daea23fbd29b03705e742ec2a22d6ec.tar.gz
sncontinue-3629dddb1daea23fbd29b03705e742ec2a22d6ec.tar.bz2
sncontinue-3629dddb1daea23fbd29b03705e742ec2a22d6ec.zip
revert: :bug: revert unecessary changes from yesterday
Diffstat (limited to 'continuedev/src/continuedev/server')
-rw-r--r--continuedev/src/continuedev/server/gui.py4
-rw-r--r--continuedev/src/continuedev/server/ide.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/continuedev/src/continuedev/server/gui.py b/continuedev/src/continuedev/server/gui.py
index 35c52a47..49d46be3 100644
--- a/continuedev/src/continuedev/server/gui.py
+++ b/continuedev/src/continuedev/server/gui.py
@@ -59,12 +59,12 @@ class GUIProtocolServer(AbstractGUIProtocolServer):
"data": data
})
- async def _receive_json(self, message_type: str, timeout: int = 10) -> Any:
+ async def _receive_json(self, message_type: str, timeout: int = 20) -> Any:
try:
return await asyncio.wait_for(self.sub_queue.get(message_type), timeout=timeout)
except asyncio.TimeoutError:
raise Exception(
- "GUI Protocol _receive_json timed out after 10 seconds")
+ "GUI Protocol _receive_json timed out after 20 seconds")
async def _send_and_receive_json(self, data: Any, resp_model: Type[T], message_type: str) -> T:
await self._send_json(message_type, data)
diff --git a/continuedev/src/continuedev/server/ide.py b/continuedev/src/continuedev/server/ide.py
index b0dbc552..e523d3aa 100644
--- a/continuedev/src/continuedev/server/ide.py
+++ b/continuedev/src/continuedev/server/ide.py
@@ -165,12 +165,12 @@ class IdeProtocolServer(AbstractIdeProtocolServer):
"data": data
})
- async def _receive_json(self, message_type: str, timeout: int = 10) -> Any:
+ async def _receive_json(self, message_type: str, timeout: int = 20) -> Any:
try:
return await asyncio.wait_for(self.sub_queue.get(message_type), timeout=timeout)
except asyncio.TimeoutError:
raise Exception(
- f"IDE Protocol _receive_json timed out after 10 seconds: {message_type}")
+ f"IDE Protocol _receive_json timed out after 20 seconds: {message_type}")
async def _send_and_receive_json(self, data: Any, resp_model: Type[T], message_type: str) -> T:
await self._send_json(message_type, data)