We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d4e01c commit fb3afb9Copy full SHA for fb3afb9
Sources/Redis/RedisClientOptions.swift
@@ -14,6 +14,9 @@
14
15
import NIO
16
17
+fileprivate let onDemandSharedEventLoopGroup =
18
+ MultiThreadedEventLoopGroup(numThreads: 1)
19
+
20
/// Configuration options for the socket connects
21
open class ConnectOptions : CustomStringConvertible {
22
@@ -28,7 +31,7 @@ open class ConnectOptions : CustomStringConvertible {
28
31
self.port = port
29
32
self.eventLoopGroup = eventLoopGroup
30
33
?? MultiThreadedEventLoopGroup.currentEventLoop
- ?? MultiThreadedEventLoopGroup(numThreads: 1)
34
+ ?? onDemandSharedEventLoopGroup
35
}
36
37
public var description: String {
0 commit comments