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