Skip to content

Commit 346845e

Browse files
committed
Remove unnecessary consume
1 parent f17b9e9 commit 346845e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AsyncAlgorithms/MultiProducerSingleConsumerChannel/MultiProducerSingleConsumerAsyncChannel+Internal.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ extension MultiProducerSingleConsumerAsyncChannel {
267267
return $0.send(sequence)
268268
}
269269

270-
switch consume action {
270+
switch action {
271271
case .returnProduceMore:
272272
return .produceMore
273273

@@ -438,7 +438,7 @@ extension MultiProducerSingleConsumerAsyncChannel {
438438
$0.suspendNext(continuation: continuation)
439439
}
440440

441-
switch consume action {
441+
switch action {
442442
case .resumeConsumerWithElement(let continuation, let element):
443443
continuation.resume(returning: element.take())
444444

0 commit comments

Comments
 (0)