Skip to content

Commit

Permalink
change default pyrogram worker count
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Apr 28, 2023
1 parent ffcfcea commit 6fd9ea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fakeredis==2.11.1
supervisor==4.2.5
tgbot-ping==1.0.7
redis==4.5.4
requests==2.28.2
requests==2.29.0
tqdm==4.65.0
requests-toolbelt==0.10.1
ffpb==0.4.1
Expand Down
2 changes: 1 addition & 1 deletion ytdlbot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# general settings
WORKERS: int = int(os.getenv("WORKERS", 100))
PYRO_WORKERS: int = int(os.getenv("PYRO_WORKERS", min(32, os.cpu_count() + 4)))
PYRO_WORKERS: int = int(os.getenv("PYRO_WORKERS", min(64, (os.cpu_count() + 4) * 10)))
APP_ID: int = int(os.getenv("APP_ID", 198214))
APP_HASH = os.getenv("APP_HASH", "1234b90")
TOKEN = os.getenv("TOKEN", "1234")
Expand Down

0 comments on commit 6fd9ea0

Please sign in to comment.