From 65541eb35cd80bd825b9494afb6aac9aee9f8575 Mon Sep 17 00:00:00 2001 From: Michael Krukov Date: Thu, 4 Mar 2021 18:51:22 +0300 Subject: [PATCH] fix: corrected sleep in execute_loop in 'vkontakte' backend --- kutana/backends/vkontakte/backend.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kutana/backends/vkontakte/backend.py b/kutana/backends/vkontakte/backend.py index 3c835dd..f77be4f 100644 --- a/kutana/backends/vkontakte/backend.py +++ b/kutana/backends/vkontakte/backend.py @@ -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 = [] @@ -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})