Skip to content

Commit

Permalink
fix: corrected sleep in execute_loop in 'vkontakte' backend
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkryukov committed Mar 4, 2021
1 parent ed3e08c commit 65541eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kutana/backends/vkontakte/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def raw_request(self, method, kwargs={}):

async def _execute_loop(self, loop):
while True:
await asyncio.sleep(0)
await asyncio.sleep(self.api_request_pause)

requests = []

Expand All @@ -125,8 +125,6 @@ async def _execute_loop(self, loop):
loop=loop,
)

await asyncio.sleep(self.api_request_pause)

async def _execute_loop_perform_execute(self, code, requests):
response = await self._get_response("execute", {"code": code})

Expand Down

0 comments on commit 65541eb

Please sign in to comment.