File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,6 @@ internal struct LambdaHTTPServer {
440
440
enum State : ~ Copyable {
441
441
case buffer( Deque < T > )
442
442
case continuation( CheckedContinuation < T , any Error > ? )
443
- case cancelled
444
443
}
445
444
446
445
private let lock = Mutex < State > ( . buffer( [ ] ) )
@@ -459,10 +458,6 @@ internal struct LambdaHTTPServer {
459
458
buffer. append ( invocation)
460
459
state = . buffer( buffer)
461
460
return nil
462
-
463
- case . cancelled:
464
- state = . cancelled
465
- return nil
466
461
}
467
462
}
468
463
@@ -490,10 +485,6 @@ internal struct LambdaHTTPServer {
490
485
491
486
case . continuation:
492
487
fatalError ( " Concurrent invocations to next(). This is illegal. " )
493
-
494
- case . cancelled:
495
- state = . cancelled
496
- return nil
497
488
}
498
489
}
499
490
@@ -508,9 +499,7 @@ internal struct LambdaHTTPServer {
508
499
state = . buffer( buffer)
509
500
case . continuation( let continuation) :
510
501
continuation? . resume ( throwing: CancellationError ( ) )
511
- state = . continuation( continuation)
512
- case . cancelled:
513
- state = . cancelled
502
+ state = . buffer( [ ] )
514
503
}
515
504
}
516
505
}
You can’t perform that action at this time.
0 commit comments