mirror of
https://github.com/apple/container.git
synced 2026-09-14 11:45:39 +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:
@@ -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