From edf3af9777887f36f1259e2c45f543b60c40b9f7 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 1 Jun 2021 10:37:36 -0400 Subject: [PATCH] Drop waits to half-seconds --- piker/data/_web_bs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/data/_web_bs.py b/piker/data/_web_bs.py index 543ac19f..485f69c2 100644 --- a/piker/data/_web_bs.py +++ b/piker/data/_web_bs.py @@ -64,13 +64,13 @@ class NoBsWs: async def _connect( self, - tries: int = 10000, + tries: int = 1000, ) -> None: while True: try: await self._stack.aclose() except (DisconnectionTimeout, RuntimeError): - await trio.sleep(1) + await trio.sleep(0.5) else: break @@ -95,7 +95,7 @@ class NoBsWs: f'{self} connection bail with ' f'{type(err)}...retry attempt {i}' ) - await trio.sleep(1) + await trio.sleep(0.5) continue else: log.exception('ws connection fail...')