Skip to content

Commit

Permalink
undo for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Oct 31, 2024
1 parent e5be6d1 commit b992110
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/replay-internal/src/util/addEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ async function _addEvent(
event: RecordingEvent,
isCheckout?: boolean,
): Promise<AddEventResult | null> {
if (!replay.eventBuffer || (replay.eventBuffer.waitForCheckout && !isCheckout)) {
if (!replay.eventBuffer) {
// || (replay.eventBuffer.waitForCheckout && !isCheckout)) {
return null;
}

Expand Down Expand Up @@ -83,13 +84,13 @@ async function _addEvent(
const isExceeded = error && error instanceof EventBufferSizeExceededError;
const reason = isExceeded ? 'addEventSizeExceeded' : 'addEvent';

if (isExceeded && isBufferMode) {
// Clear buffer and wait for next checkout
replay.eventBuffer.clear();
replay.eventBuffer.waitForCheckout = true;

return null;
}
// if (isExceeded && isBufferMode) {
// // Clear buffer and wait for next checkout
// replay.eventBuffer.clear();
// replay.eventBuffer.waitForCheckout = true;
//
// return null;
// }

replay.handleException(error);

Expand Down

0 comments on commit b992110

Please sign in to comment.