fix sendable

This commit is contained in:
Eric Rosenberg 2025-01-21 16:33:30 +00:00
parent 8dea1866a3
commit d1b04df581

View File

@ -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(