Skip to content

Commit

Permalink
fix(eventsub): use backoff delay for subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed May 31, 2024
1 parent a5fe059 commit 6a9ea82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/eventsub/internal/manager/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ func (c *Manager) SubscribeWithLimits(
return c.Subscribe(ctx, srq)
},
retry.Attempts(0),
retry.Delay(1*time.Second),
retry.DelayType(retry.BackOffDelay),
retry.Delay(500*time.Millisecond),
retry.RetryIf(
func(err error) bool {
var e *eventsub_framework.TwitchError
Expand Down

0 comments on commit 6a9ea82

Please sign in to comment.