Skip to content

Commit

Permalink
set LAZY_STREAM_BOTS default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
divyam234 committed Nov 7, 2023
1 parent cf273b5 commit ceafaf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ In addition to the mandatory variables, you can also set the following optional

- `COOKIE_SAME_SITE` : Only needed when frontend is on other domain (Default true).

- `LAZY_STREAM_BOTS` : If set to true start Bot session and close immediately when stream or download request is over otherwise run bots forever till server stops (Default true).
- `LAZY_STREAM_BOTS` : If set to true start Bot session and close immediately when stream or download request is over otherwise run bots forever till server stops (Default false).

- `BG_BOTS_LIMIT` : If LAZY_STREAM_BOTS is set to false it start atmost BG_BOTS_LIMIT no of bots in background to prevent connection recreation on every request (Default 5).

Expand Down
2 changes: 1 addition & 1 deletion utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Config struct {
TgClientLangPack string `envconfig:"TG_CLIENT_LANG_PACK" default:"webk"`
RunMigrations bool `envconfig:"RUN_MIGRATIONS" default:"true"`
Port int `envconfig:"PORT" default:"8080"`
LazyStreamBots bool `envconfig:"LAZY_STREAM_BOTS" default:"true"`
LazyStreamBots bool `envconfig:"LAZY_STREAM_BOTS" default:"false"`
BgBotsLimit int `envconfig:"BG_BOTS_LIMIT" default:"5"`
UploadRetention int `envconfig:"UPLOAD_RETENTION" default:"15"`
ExecDir string
Expand Down

0 comments on commit ceafaf8

Please sign in to comment.