Skip to content

Commit

Permalink
add retry delay on client restart
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Feb 11, 2025
1 parent cf325bd commit f5f6cdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,7 @@ func (sc *SubscriptionClient) initNewSession(ctx context.Context) (*Subscription
currentSession := sc.getCurrentSession()
if currentSession != nil {
_ = currentSession.Close()
time.Sleep(sc.retryDelay)
}

subContext := &SubscriptionContext{
Expand Down

0 comments on commit f5f6cdf

Please sign in to comment.