mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-14 17:02:43 +08:00
fix sendable
This commit is contained in:
parent
8dea1866a3
commit
d1b04df581
@ -117,10 +117,7 @@ public final class SimpleResponsivenessRequestMux: ChannelInboundHandler {
|
|||||||
/// Adding handlers is fallible. If we fail to do it, we should return 500 to the user
|
/// Adding handlers is fallible. If we fail to do it, we should return 500 to the user
|
||||||
private func addHandlerOrInternalError(context: ChannelHandlerContext, handler: ChannelHandler) {
|
private func addHandlerOrInternalError(context: ChannelHandlerContext, handler: ChannelHandler) {
|
||||||
do {
|
do {
|
||||||
try context.pipeline.syncOperations.addHandler(
|
try context.pipeline.syncOperations.addHandler(handler)
|
||||||
handler,
|
|
||||||
position: ChannelPipeline.Position.after(self)
|
|
||||||
)
|
|
||||||
self.handlerAdded = true
|
self.handlerAdded = true
|
||||||
} catch {
|
} catch {
|
||||||
self.writeSimpleResponse(
|
self.writeSimpleResponse(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user