Skip to content

Commit dfd8335

Browse files
committed
move yield to the end
1 parent 0488ae5 commit dfd8335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/federation-sdk/src/services/staging-area.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ export class StagingAreaService {
9090
continue;
9191
}
9292

93-
yield event;
94-
9593
this.logger.info({ msg: 'Processing event', eventId: event._id });
9694

9795
try {
@@ -141,6 +139,8 @@ export class StagingAreaService {
141139
}
142140
}
143141

142+
yield event;
143+
144144
// TODO: what should we do to avoid infinite loops in case the next event is always the same event
145145
} while (event);
146146
this.logger.debug({ msg: 'No more events to process for room', roomId });

0 commit comments

Comments
 (0)