Skip to content

Commit

Permalink
fix(cmd): increase default reconnect timeout to 5 minutes.
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Feb 12, 2024
1 parent 550621e commit 150d93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func New() *cobra.Command {
cmd.PersistentFlags().Int(consts.FlagPoolSize, 8, "specify the size of the DC pool, zero means infinity")

cmd.PersistentFlags().String(consts.FlagNTP, "", "ntp server host, if not set, use system time")
cmd.PersistentFlags().Duration(consts.FlagReconnectTimeout, 2*time.Minute, "Telegram client reconnection backoff timeout, infinite if set to 0") // #158
cmd.PersistentFlags().Duration(consts.FlagReconnectTimeout, 5*time.Minute, "Telegram client reconnection backoff timeout, infinite if set to 0") // #158

cmd.PersistentFlags().String(consts.FlagTest, "", "use test Telegram client, only for developer")

Expand Down

0 comments on commit 150d93e

Please sign in to comment.