mirror of
https://github.com/swift-server/swift-openapi-async-http-client.git
synced 2026-06-02 07:47:33 +00:00
Enable strict concurrency checking in CI (#11)
Enable strict concurrency checking in CI
### Motivation
To further avoid concurrency bugs, enable complete concurrency checking in CI.
### Modifications
Added the compiler flag to the docker-compose scripts.
### Result
If a warning of this nature comes up, because we have warnings-as-errors, it'll fail CI.
### Test Plan
Locally built without any warnings with the flag enabled.
Reviewed by: glbrntt
Builds:
✔︎ pull request validation (5.8) - Build finished.
✔︎ pull request validation (5.9) - Build finished.
✔︎ pull request validation (nightly) - Build finished.
✔︎ pull request validation (soundness) - Build finished.
https://github.com/swift-server/swift-openapi-async-http-client/pull/11
This commit is contained in:
@@ -15,8 +15,15 @@ import OpenAPIRuntime
|
||||
import AsyncHTTPClient
|
||||
import NIOCore
|
||||
import NIOHTTP1
|
||||
import Foundation
|
||||
import NIOFoundationCompat
|
||||
#if canImport(Darwin)
|
||||
import Foundation
|
||||
#else
|
||||
@preconcurrency import struct Foundation.URL
|
||||
import struct Foundation.URLComponents
|
||||
import struct Foundation.Data
|
||||
import protocol Foundation.LocalizedError
|
||||
#endif
|
||||
|
||||
/// A client transport that performs HTTP operations using the HTTPClient type
|
||||
/// provided by the AsyncHTTPClient library.
|
||||
|
||||
Reference in New Issue
Block a user