@@ -519,22 +519,25 @@ export class CollectionSubscription
519519 const stateKey = changes . length
520520
521521 if (
522- checkLimit ( ( ) => ( {
523- context : `requestLimitedSnapshot` ,
524- diagnostics : {
525- collectionId : this . collection . id ,
526- collectionSize : this . collection . size ,
527- limit,
528- offset,
529- valuesNeeded : valuesNeeded ( ) ,
530- keysInBatch : keys . length ,
531- changesCollected : changes . length ,
532- sentKeysCount : this . sentKeys . size ,
533- cursorValue : biggestObservedValue ,
534- minValueForIndex,
535- orderByDirection : orderBy [ 0 ] ! . compareOptions . direction ,
536- } ,
537- } ) , stateKey )
522+ checkLimit (
523+ ( ) => ( {
524+ context : `requestLimitedSnapshot` ,
525+ diagnostics : {
526+ collectionId : this . collection . id ,
527+ collectionSize : this . collection . size ,
528+ limit,
529+ offset,
530+ valuesNeeded : valuesNeeded ( ) ,
531+ keysInBatch : keys . length ,
532+ changesCollected : changes . length ,
533+ sentKeysCount : this . sentKeys . size ,
534+ cursorValue : biggestObservedValue ,
535+ minValueForIndex,
536+ orderByDirection : orderBy [ 0 ] ! . compareOptions . direction ,
537+ } ,
538+ } ) ,
539+ stateKey ,
540+ )
538541 ) {
539542 hitIterationLimit = true
540543 break
0 commit comments