Skip to content

Commit

Permalink
Remove graceful shutdown handler surrounding HBApplicationProtocol.run
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jan 7, 2024
1 parent 1b8cd8a commit 9774669
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Sources/Hummingbird/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,11 @@ extension HBApplicationProtocol {
eventLoopGroup: self.eventLoopGroup,
logger: self.logger
)
try await withGracefulShutdownHandler {
let services: [any Service] = [server, dateCache] + self.services
let serviceGroup = ServiceGroup(
configuration: .init(services: services, logger: self.logger)
)
try await serviceGroup.run()
} onGracefulShutdown: {}
let services: [any Service] = [server, dateCache] + self.services
let serviceGroup = ServiceGroup(
configuration: .init(services: services, logger: self.logger)
)
try await serviceGroup.run()
}

/// Helper function that runs application inside a ServiceGroup which will gracefully
Expand Down

0 comments on commit 9774669

Please sign in to comment.