Skip to content

Commit 72139de

Browse files
committed
Revert event processor changes and disable auto-start for client SDKs.
1 parent b097038 commit 72139de

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/shared/common/src/internal/events/EventProcessor.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export default class EventProcessor implements LDEventProcessor {
130130
baseHeaders: LDHeaders,
131131
private readonly contextDeduplicator?: LDContextDeduplicator,
132132
private readonly diagnosticsManager?: DiagnosticsManager,
133+
start: boolean = true,
133134
) {
134135
this.capacity = config.eventsCapacity;
135136
this.logger = clientContext.basicConfiguration.logger;
@@ -139,6 +140,10 @@ export default class EventProcessor implements LDEventProcessor {
139140
config.allAttributesPrivate,
140141
config.privateAttributes.map((ref) => new AttributeReference(ref)),
141142
);
143+
144+
if (start) {
145+
this.start();
146+
}
142147
}
143148

144149
start() {

packages/shared/sdk-client/src/events/createEventProcessor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const createEventProcessor = (
1616
baseHeaders,
1717
undefined,
1818
diagnosticsManager,
19+
false,
1920
);
2021
}
2122

0 commit comments

Comments
 (0)