Skip to content

Commit a36e707

Browse files
committed
Forgot a file
1 parent 3caa44c commit a36e707

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

source/includes/read/change-streams/change-stream.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ function toJSON(object $document): string
2020
$changeStream = $collection->watch();
2121
$changeStream->rewind();
2222

23-
do {
24-
$changeStream->next();
25-
26-
if ($changeStream->valid()) {
27-
$event = $changeStream->current();
28-
echo toJSON($event), PHP_EOL;
29-
}
30-
} while (! $changeStream->valid() || $changeStream->current()['operationType'] !== 'invalidate');
31-
3223
while (true) {
3324
$changeStream->next();
3425

0 commit comments

Comments
 (0)