Skip to content

Commit

Permalink
Support infinite connection attempt retries
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeike committed Mar 19, 2024
1 parent b83280e commit 077fe70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/client/events/replay_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const (
// eventsBytesRetryLimit is the maximum number of times to attempt to
// re-establish the events query bytes subscription when the events bytes
// observable returns an error or closes.
eventsBytesRetryLimit = 10
eventsBytesRetryLimit = 0
eventsBytesRetryResetTimeout = 10 * time.Second
// replayObsCacheBufferSize is the replay buffer size of the
// replayObsCache replay observable which is used to cache the replay
Expand Down
2 changes: 1 addition & 1 deletion pkg/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func OnError(
return nil
}

if retryCount >= retryLimit {
if retryLimit > 0 && retryCount >= retryLimit {
return err
}

Expand Down

0 comments on commit 077fe70

Please sign in to comment.