mirror of
https://github.com/iyear/tdl
synced 2025-01-09 04:17:35 +08:00
fix(tgc): retry interval and times
This commit is contained in:
parent
8c4135eae1
commit
cc3736757f
@ -65,8 +65,8 @@ func New(ctx context.Context, login bool, middlewares ...telegram.Middleware) (*
|
||||
},
|
||||
Device: consts.Device,
|
||||
SessionStorage: storage.NewSession(kvd, login),
|
||||
RetryInterval: time.Second,
|
||||
MaxRetries: 10,
|
||||
RetryInterval: 5 * time.Second,
|
||||
MaxRetries: 5,
|
||||
DialTimeout: 10 * time.Second,
|
||||
Middlewares: middlewares,
|
||||
Clock: _clock,
|
||||
|
Loading…
Reference in New Issue
Block a user