@@ -243,7 +243,8 @@ fn render_simple_generator<G: Scope<Timestamp = MzOffset>>(
243
243
let mut builder = AsyncOperatorBuilder :: new ( config. name . clone ( ) , scope. clone ( ) ) ;
244
244
245
245
let ( data_output, stream) = builder. new_output :: < AccountedStackBuilder < _ > > ( ) ;
246
- let partition_count = u64:: cast_from ( config. source_exports . len ( ) ) ;
246
+ let export_ids: Vec < _ > = config. source_exports . keys ( ) . copied ( ) . collect ( ) ;
247
+ let partition_count = u64:: cast_from ( export_ids. len ( ) ) ;
247
248
let data_streams: Vec < _ > = stream. partition :: < CapacityContainerBuilder < _ > , _ , _ > (
248
249
partition_count,
249
250
|( ( output, data) , time, diff) : & (
@@ -256,7 +257,7 @@ fn render_simple_generator<G: Scope<Timestamp = MzOffset>>(
256
257
} ,
257
258
) ;
258
259
let mut data_collections = BTreeMap :: new ( ) ;
259
- for ( id, data_stream) in config . source_exports . keys ( ) . zip_eq ( data_streams) {
260
+ for ( id, data_stream) in export_ids . iter ( ) . zip_eq ( data_streams) {
260
261
data_collections. insert ( * id, data_stream. as_collection ( ) ) ;
261
262
}
262
263
@@ -373,14 +374,17 @@ fn render_simple_generator<G: Scope<Timestamp = MzOffset>>(
373
374
Event :: Progress ( Some ( offset) ) => {
374
375
if resume_offset <= offset && health_cap. is_some ( ) {
375
376
let health_cap = health_cap. take ( ) . expect ( "known to exist" ) ;
376
- health_output. give (
377
- & health_cap,
378
- HealthStatusMessage {
379
- id : None ,
380
- namespace : StatusNamespace :: Generator ,
381
- update : HealthStatusUpdate :: running ( ) ,
382
- } ,
383
- ) ;
377
+ let export_ids = export_ids. iter ( ) . copied ( ) ;
378
+ for id in export_ids. map ( Some ) . chain ( None ) {
379
+ health_output. give (
380
+ & health_cap,
381
+ HealthStatusMessage {
382
+ id,
383
+ namespace : StatusNamespace :: Generator ,
384
+ update : HealthStatusUpdate :: running ( ) ,
385
+ } ,
386
+ ) ;
387
+ }
384
388
}
385
389
386
390
// If we've reached the requested maximum offset, cease.
0 commit comments