Skip to content

Commit

Permalink
Match our docs and ajs classic with retry count (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky authored Nov 3, 2023
1 parent 930af49 commit 1faabf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-masks-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@segment/analytics-next': minor
---

Change default retries to 10 to match docs + ajs classic
2 changes: 1 addition & 1 deletion packages/browser/src/core/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function createDefaultQueue(
retryQueue = false,
disablePersistance = false
) {
const maxAttempts = retryQueue ? 4 : 1
const maxAttempts = retryQueue ? 10 : 1
const priorityQueue = disablePersistance
? new PriorityQueue(maxAttempts, [])
: new PersistedPriorityQueue(maxAttempts, name)
Expand Down

0 comments on commit 1faabf1

Please sign in to comment.