Skip to content

Commit 1faabf1

Browse files
authored
Match our docs and ajs classic with retry count (#989)
1 parent 930af49 commit 1faabf1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/five-masks-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@segment/analytics-next': minor
3+
---
4+
5+
Change default retries to 10 to match docs + ajs classic

packages/browser/src/core/analytics/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function createDefaultQueue(
6868
retryQueue = false,
6969
disablePersistance = false
7070
) {
71-
const maxAttempts = retryQueue ? 4 : 1
71+
const maxAttempts = retryQueue ? 10 : 1
7272
const priorityQueue = disablePersistance
7373
? new PriorityQueue(maxAttempts, [])
7474
: new PersistedPriorityQueue(maxAttempts, name)

0 commit comments

Comments
 (0)