From 6a9ea821aacf6e4f3846ec36afe892fe94c84131 Mon Sep 17 00:00:00 2001 From: Satont Date: Fri, 31 May 2024 07:31:57 +0300 Subject: [PATCH] fix(eventsub): use backoff delay for subscriptions --- apps/eventsub/internal/manager/subscribe.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/eventsub/internal/manager/subscribe.go b/apps/eventsub/internal/manager/subscribe.go index 8f25c06f7..5cb41900c 100644 --- a/apps/eventsub/internal/manager/subscribe.go +++ b/apps/eventsub/internal/manager/subscribe.go @@ -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