mirror of
https://github.com/apple/container.git
synced 2026-11-15 18:30:16 +00:00
Use a protocol type instead of the concrete type (#353)
Use a protocol type instead of the concrete type.
This commit is contained in:
1 parent
9f5aaf247a
commit
2dbba786d2
1 file changed
+2
-2
@@ -24,7 +24,7 @@ import NIOPosix
|
||||
final class Initd: Sendable {
|
||||
let log: Logger
|
||||
let state: State
|
||||
let group: MultiThreadedEventLoopGroup
|
||||
let group: EventLoopGroup
|
||||
|
||||
actor State {
|
||||
var containers: [String: ManagedContainer] = [:]
|
||||
@@ -80,7 +80,7 @@ final class Initd: Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
init(log: Logger, group: MultiThreadedEventLoopGroup) {
|
||||
init(log: Logger, group: EventLoopGroup) {
|
||||
self.log = log
|
||||
self.group = group
|
||||
self.state = State()
|
||||
|
||||
Reference in new issue
Block a user