Skip to content

Commit 9649b14

Browse files
committed
Don't make use of hardcoded default int values too
1 parent a32009a commit 9649b14

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pyrogram/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __init__(self,
159159
force_sms: bool = False,
160160
first_name: str = None,
161161
last_name: str = None,
162-
workers: int = 4,
162+
workers: int = BaseClient.WORKERS,
163163
workdir: str = BaseClient.WORKDIR,
164164
config_file: str = BaseClient.CONFIG_FILE):
165165
super().__init__()

pyrogram/client/ext/base_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class BaseClient:
4949
UPDATES_WORKERS = 1
5050
DOWNLOAD_WORKERS = 1
5151
OFFLINE_SLEEP = 300
52+
WORKERS = 4
5253
WORKDIR = "."
5354
CONFIG_FILE = "./config.ini"
5455

0 commit comments

Comments
 (0)