Skip to content

Commit

Permalink
Use ComponentLifecycle in HBApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
slashmo committed Sep 27, 2022
1 parent 8a117a1 commit 092cd48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Hummingbird/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class HBApplication: HBExtensible {
// MARK: Member variables

/// server lifecycle, controls initialization and shutdown of application
public let lifecycle: ServiceLifecycle
public let lifecycle: ComponentLifecycle
/// event loop group used by application
public let eventLoopGroup: EventLoopGroup
/// thread pool used by application
Expand Down Expand Up @@ -75,7 +75,7 @@ public final class HBApplication: HBExtensible {
logger.logLevel = configuration.logLevel
self.logger = logger

self.lifecycle = ServiceLifecycle(configuration: .init(logger: self.logger))
self.lifecycle = ComponentLifecycle(label: logger.label, logger: logger)
self.middleware = HBMiddlewareGroup()
self.router = TrieRouter()
self.configuration = configuration
Expand Down

0 comments on commit 092cd48

Please sign in to comment.