Skip to content

Commit 3960a55

Browse files
committed
transfer waitForCheckout to compression buffer
1 parent 9789fa7 commit 3960a55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/replay-internal/src/eventBuffer/EventBufferProxy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,15 @@ export class EventBufferProxy implements EventBuffer {
104104

105105
/** Switch the used buffer to the compression worker. */
106106
private async _switchToCompressionWorker(): Promise<void> {
107-
const { events, hasCheckout } = this._fallback;
107+
const { events, hasCheckout, waitForCheckout } = this._fallback;
108108

109109
const addEventPromises: Promise<void>[] = [];
110110
for (const event of events) {
111111
addEventPromises.push(this._compression.addEvent(event));
112112
}
113113

114114
this._compression.hasCheckout = hasCheckout;
115+
this._compression.waitForCheckout = waitForCheckout;
115116

116117
// We switch over to the new buffer immediately - any further events will be added
117118
// after the previously buffered ones

0 commit comments

Comments
 (0)