mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-14 08:52:42 +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
|
||||
private func addHandlerOrInternalError(context: ChannelHandlerContext, handler: ChannelHandler) {
|
||||
do {
|
||||
try context.pipeline.syncOperations.addHandler(
|
||||
handler,
|
||||
position: ChannelPipeline.Position.after(self)
|
||||
)
|
||||
try context.pipeline.syncOperations.addHandler(handler)
|
||||
self.handlerAdded = true
|
||||
} catch {
|
||||
self.writeSimpleResponse(
|
||||
|
Loading…
x
Reference in New Issue
Block a user