@@ -165,7 +165,7 @@ final class ZipStorage<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncS
165
165
}
166
166
167
167
group. addTask {
168
- var base1Iterator = base2. makeAsyncIterator ( )
168
+ var base2Iterator = base2. makeAsyncIterator ( )
169
169
170
170
while true {
171
171
// We are creating a continuation before requesting the next
@@ -188,7 +188,7 @@ final class ZipStorage<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncS
188
188
}
189
189
}
190
190
191
- if let element2 = try await base1Iterator . next ( ) {
191
+ if let element2 = try await base2Iterator . next ( ) {
192
192
self . stateMachine. withCriticalRegion { stateMachine in
193
193
let action = stateMachine. elementProduced ( ( nil , element2, nil ) )
194
194
@@ -226,7 +226,7 @@ final class ZipStorage<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncS
226
226
227
227
if let base3 = base3 {
228
228
group. addTask {
229
- var base1Iterator = base3. makeAsyncIterator ( )
229
+ var base3Iterator = base3. makeAsyncIterator ( )
230
230
231
231
while true {
232
232
// We are creating a continuation before requesting the next
@@ -249,7 +249,7 @@ final class ZipStorage<Base1: AsyncSequence, Base2: AsyncSequence, Base3: AsyncS
249
249
}
250
250
}
251
251
252
- if let element3 = try await base1Iterator . next ( ) {
252
+ if let element3 = try await base3Iterator . next ( ) {
253
253
self . stateMachine. withCriticalRegion { stateMachine in
254
254
let action = stateMachine. elementProduced ( ( nil , nil , element3) )
255
255
0 commit comments