Skip to content

Commit

Permalink
Fix typo in datasource (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored May 24, 2021
1 parent 3659c2e commit 30c51b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dipdup/datasources/tzkt/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ def submit(self, fn, *args, **kwargs):

async def run(self):
while True:
await asyncio.sleep(0.1)
try:
coro = self._queue.popleft()
await coro
except IndexError:
await asyncio.sleep(0.1)
pass
except asyncio.CancelledError:
return

Expand Down Expand Up @@ -369,8 +370,8 @@ async def start(self):
if not rest_only:
self._logger.info('Starting websocket client')
await asyncio.gather(
await self._get_client().start(),
await self._callback_executor.run(),
self._get_client().start(),
self._callback_executor.run(),
)

async def stop(self):
Expand Down

0 comments on commit 30c51b2

Please # to comment.