fix(tgc): retry interval and times

This commit is contained in:
iyear 2023-04-06 09:31:39 +08:00
parent 8c4135eae1
commit cc3736757f

View File

@ -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,