Skip to content

Commit 18109d8

Browse files
authored
Use NIOCore.System.coreCount for the fileIO thread pool (#618)
1 parent fc510a3 commit 18109d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncHTTPClient/HTTPClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public class HTTPClient {
269269
private func makeOrGetFileIOThreadPool() -> NIOThreadPool {
270270
self.fileIOThreadPoolLock.withLock {
271271
guard let fileIOThreadPool = fileIOThreadPool else {
272-
let fileIOThreadPool = NIOThreadPool(numberOfThreads: ProcessInfo.processInfo.processorCount)
272+
let fileIOThreadPool = NIOThreadPool(numberOfThreads: System.coreCount)
273273
fileIOThreadPool.start()
274274
self.fileIOThreadPool = fileIOThreadPool
275275
return fileIOThreadPool

0 commit comments

Comments
 (0)