Skip to content

Commit

Permalink
Don't shutdown server in HBApplication
Browse files Browse the repository at this point in the history
The service group will do that for us
  • Loading branch information
adam-fowler committed Jan 7, 2024
1 parent 06c8743 commit 8b62fcb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Sources/Hummingbird/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ extension HBApplicationProtocol {
configuration: .init(services: services, logger: self.logger)
)
try await serviceGroup.run()
} onGracefulShutdown: {
Task {
try await server.shutdownGracefully()
}
}
} onGracefulShutdown: {}
}

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

0 comments on commit 8b62fcb

Please sign in to comment.