Skip to content

Commit

Permalink
chore(tgc): inf retries
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Dec 4, 2023
1 parent 18903f9 commit 1a896b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/internal/tgc/tgc.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,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,

Check failure on line 84 in app/internal/tgc/tgc.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard -s default -s prefix(github.com/iyear/tdl) -s dot --custom-order (gci)
MaxRetries: -1, // infinite retries
DialTimeout: 10 * time.Second,
Middlewares: middlewares,
Clock: _clock,
Expand Down

0 comments on commit 1a896b7

Please sign in to comment.