@@ -228,7 +228,7 @@ export class BucketChecksumState {
228228 bucketsToFetch = allBuckets ;
229229 this . parameterState . syncRules . bucketDescriptors ;
230230
231- const subscriptions : util . SubscribedStream [ ] = [ ] ;
231+ const subscriptions : util . StreamDescription [ ] = [ ] ;
232232 for ( const desc of this . parameterState . syncRules . bucketDescriptors ) {
233233 if ( desc . type == SqlBucketDescriptorType . STREAM && this . parameterState . isSubscribedToStream ( desc ) ) {
234234 subscriptions . push ( {
@@ -246,7 +246,7 @@ export class BucketChecksumState {
246246 ...e ,
247247 ...bucketDescriptionMap . get ( e . bucket ) !
248248 } ) ) ,
249- included_subscriptions : subscriptions
249+ streams : subscriptions
250250 }
251251 } satisfies util . StreamingSyncCheckpoint ;
252252 }
@@ -355,7 +355,7 @@ export class BucketParameterState {
355355 private readonly querier : BucketParameterQuerier ;
356356 private readonly staticBuckets : Map < string , BucketDescription > ;
357357 private readonly includeDefaultStreams : boolean ;
358- private readonly explicitStreamSubscriptions : Record < string , util . StreamSubscription > ;
358+ private readonly explicitlyOpenedStreams : Record < string , util . OpenedStream > ;
359359 private readonly logger : Logger ;
360360 private cachedDynamicBuckets : BucketDescription [ ] | null = null ;
361361 private cachedDynamicBucketSet : Set < string > | null = null ;
@@ -376,21 +376,21 @@ export class BucketParameterState {
376376 this . syncParams = syncParams ;
377377 this . logger = logger ;
378378
379- const explicitStreamSubscriptions : Record < string , util . StreamSubscription > = { } ;
379+ const explicitlyOpenedStreams : Record < string , util . OpenedStream > = { } ;
380380 const subscriptions = request . subscriptions ;
381381 if ( subscriptions ) {
382- for ( const subscription of subscriptions . subscriptions ) {
383- explicitStreamSubscriptions [ subscription . stream ] = subscription ;
382+ for ( const subscription of subscriptions . opened ) {
383+ explicitlyOpenedStreams [ subscription . stream ] = subscription ;
384384 }
385385 }
386386 this . includeDefaultStreams = subscriptions ?. include_defaults ?? true ;
387- this . explicitStreamSubscriptions = explicitStreamSubscriptions ;
387+ this . explicitlyOpenedStreams = explicitlyOpenedStreams ;
388388
389389 this . querier = syncRules . getBucketParameterQuerier ( {
390390 globalParameters : this . syncParams ,
391391 hasDefaultSubscriptions : this . includeDefaultStreams ,
392392 resolveSubscription ( name ) {
393- const subscription = explicitStreamSubscriptions [ name ] ;
393+ const subscription = explicitlyOpenedStreams [ name ] ;
394394 if ( subscription ) {
395395 return subscription . parameters ?? { } ;
396396 } else {
@@ -408,7 +408,7 @@ export class BucketParameterState {
408408 * In partiuclar, this can override the priority assigned to a bucket.
409409 */
410410 overrideBucketDescription ( description : BucketDescription ) : BucketDescription {
411- const changedPriority = this . explicitStreamSubscriptions [ description . definition ] ?. override_priority ;
411+ const changedPriority = this . explicitlyOpenedStreams [ description . definition ] ?. override_priority ;
412412 if ( changedPriority != null && isValidPriority ( changedPriority ) ) {
413413 return {
414414 ...description ,
@@ -420,7 +420,7 @@ export class BucketParameterState {
420420 }
421421
422422 isSubscribedToStream ( desc : SqlBucketDescriptor ) : boolean {
423- return ( desc . subscribedToByDefault && this . includeDefaultStreams ) || desc . name in this . explicitStreamSubscriptions ;
423+ return ( desc . subscribedToByDefault && this . includeDefaultStreams ) || desc . name in this . explicitlyOpenedStreams ;
424424 }
425425
426426 async getCheckpointUpdate ( checkpoint : storage . StorageCheckpointUpdate ) : Promise < CheckpointUpdate > {
0 commit comments