We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc510a3 commit 18109d8Copy full SHA for 18109d8
Sources/AsyncHTTPClient/HTTPClient.swift
@@ -269,7 +269,7 @@ public class HTTPClient {
269
private func makeOrGetFileIOThreadPool() -> NIOThreadPool {
270
self.fileIOThreadPoolLock.withLock {
271
guard let fileIOThreadPool = fileIOThreadPool else {
272
- let fileIOThreadPool = NIOThreadPool(numberOfThreads: ProcessInfo.processInfo.processorCount)
+ let fileIOThreadPool = NIOThreadPool(numberOfThreads: System.coreCount)
273
fileIOThreadPool.start()
274
self.fileIOThreadPool = fileIOThreadPool
275
return fileIOThreadPool
0 commit comments