mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
Enable strict concurrency checking for NIOHTTP1Server (#3132)
### Motivation: To ensure `NIOHTTP1Server` concurrency safety. ### Modifications: * Enable strict concurrency checking in the package manifest. * User synchronous operations in pipeline configurations ### Result: Builds will warn and CI will fail if regressions are introduced.
This commit is contained in:
1 parent
4f2d42f83f
commit
de47bf8ba5
3 files changed
+10
-8
No files matched your search
@@ -631,8 +631,8 @@ default:
|
||||
}
|
||||
|
||||
func childChannelInitializer(channel: Channel) -> EventLoopFuture<Void> {
|
||||
channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap {
|
||||
channel.pipeline.addHandler(HTTPHandler(fileIO: fileIO, htdocsPath: htdocs))
|
||||
channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMapThrowing {
|
||||
try channel.pipeline.syncOperations.addHandler(HTTPHandler(fileIO: fileIO, htdocsPath: htdocs))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user