Skip to content

Commit

Permalink
Update signal buffer max (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky authored Oct 31, 2024
1 parent ba2f2b1 commit 7d5d975
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-poets-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@segment/analytics-signals': minor
---

Update max buffer size to 50
2 changes: 1 addition & 1 deletion packages/signals/signals/src/core/buffer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class SignalStore implements SignalPersistentStorage {
}

constructor(settings: { maxBufferSize?: number } = {}) {
this.maxBufferSize = settings.maxBufferSize ?? 25 // TODO: increase this number after development
this.maxBufferSize = settings.maxBufferSize ?? 50
this.signalStore = this.createSignalStore()
void this.initializeSignalCount()
}
Expand Down

0 comments on commit 7d5d975

Please sign in to comment.