@@ -455,8 +455,9 @@ async def _decode_single(
455455 chunk_spec ,
456456 chunk_selection ,
457457 out_selection ,
458+ is_complete_shard ,
458459 )
459- for chunk_coords , chunk_selection , out_selection in indexer
460+ for chunk_coords , chunk_selection , out_selection , is_complete_shard in indexer
460461 ],
461462 out ,
462463 )
@@ -486,7 +487,7 @@ async def _decode_partial_single(
486487 )
487488
488489 indexed_chunks = list (indexer )
489- all_chunk_coords = {chunk_coords for chunk_coords , _ , _ in indexed_chunks }
490+ all_chunk_coords = {chunk_coords for chunk_coords , * _ in indexed_chunks }
490491
491492 # reading bytes of all requested chunks
492493 shard_dict : ShardMapping = {}
@@ -524,8 +525,9 @@ async def _decode_partial_single(
524525 chunk_spec ,
525526 chunk_selection ,
526527 out_selection ,
528+ is_complete_shard ,
527529 )
528- for chunk_coords , chunk_selection , out_selection in indexer
530+ for chunk_coords , chunk_selection , out_selection , is_complete_shard in indexer
529531 ],
530532 out ,
531533 )
@@ -558,8 +560,9 @@ async def _encode_single(
558560 chunk_spec ,
559561 chunk_selection ,
560562 out_selection ,
563+ is_complete_shard ,
561564 )
562- for chunk_coords , chunk_selection , out_selection in indexer
565+ for chunk_coords , chunk_selection , out_selection , is_complete_shard in indexer
563566 ],
564567 shard_array ,
565568 )
@@ -601,8 +604,9 @@ async def _encode_partial_single(
601604 chunk_spec ,
602605 chunk_selection ,
603606 out_selection ,
607+ is_complete_shard ,
604608 )
605- for chunk_coords , chunk_selection , out_selection in indexer
609+ for chunk_coords , chunk_selection , out_selection , is_complete_shard in indexer
606610 ],
607611 shard_array ,
608612 )
0 commit comments