Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R2B2 Analytic Adapter : initial release #12555

Merged
merged 6 commits into from
Feb 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
lint fix
  • Loading branch information
jansima-r2b2 committed Feb 3, 2025
commit 4839e9ab912341f4975d66e8950419166e36a2b8
6 changes: 3 additions & 3 deletions modules/r2b2AnalyticsAdapter.js
Original file line number Diff line number Diff line change
@@ -69,15 +69,15 @@ function flushEvents () {
eventBuffer = [];
callDepth++;
try {
//check for recursion in case reportEvents propagates error events
//and execution doesn't finish before BATCH_SIZE is reached again
// check for recursion in case reportEvents propagates error events
// and execution doesn't finish before BATCH_SIZE is reached again
if (callDepth >= MAX_CALL_DEPTH) {
if (callDepth === MAX_CALL_DEPTH) {
logError(`${MODULE_NAME}: Maximum call depth reached, discarding events`);
}
return;
}
//clear out old data only in state without recursion
// clear out old data only in state without recursion
if (callDepth === 1) {
clearCache(bidsData);
clearCache(auctionsData);