Skip to content

Commit

Permalink
Use hummingbird-core v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Feb 1, 2021
1 parent 88f0b5a commit f21b0d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let package = Package(
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.4.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.2.0"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "1.0.0-alpha.6"),
.package(url: "https://github.com/hummingbird-project/hummingbird-core", .branch("main")),
.package(url: "https://github.com/hummingbird-project/hummingbird-core", from: "0.1.0"),
],
targets: [
.target(name: "CURLParser", dependencies: []),
Expand Down
4 changes: 1 addition & 3 deletions Sources/Hummingbird/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ public final class HBApplication: HBExtensible {

self.lifecycle.register(
label: "HTTP Server",
start: .eventLoopFuture {
return self.server.start(responder: HTTPResponder(application: self))
},
start: .eventLoopFuture { self.server.start(responder: HTTPResponder(application: self)) },
shutdown: .eventLoopFuture(self.server.stop)
)
}
Expand Down

0 comments on commit f21b0d3

Please sign in to comment.