Skip to content

Commit

Permalink
фикс багов
Browse files Browse the repository at this point in the history
  • Loading branch information
MSITETOP committed Jul 18, 2024
1 parent d51abad commit b3d1ab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fast_bitrix24/bitrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class BitrixAsync:
def __init__(
self,
webhook: str,
token_func: callable,
token_func: callable = None,
verbose: bool = True,
respect_velocity_policy: bool = True,
request_pool_size: int = 50,
Expand Down
4 changes: 2 additions & 2 deletions fast_bitrix24/srh.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(

# token_received - сигнал о том, что процесс получения токена уже запущен
self.token_request_in_progress = Event()
self.token_request_in_progress.clear()
self.token_request_in_progress.set()

self.respect_velocity_policy = respect_velocity_policy

Expand Down Expand Up @@ -318,5 +318,5 @@ async def update_token(self):
"""Запросить новый токен авторизации."""

self.token_request_in_progress.clear()
self.token = await self.token_func()
self.token = self.token_func
self.token_request_in_progress.set()

0 comments on commit b3d1ab8

Please sign in to comment.