Fix semaphore
This commit is contained in:
parent
1927a35d37
commit
e2b1fb58e9
@ -15,7 +15,7 @@ let package = Package(
|
||||
// https://github.com/Joannis/SMTPKitten <- No updates since 0ct 2020
|
||||
// https://github.com/Joannis/VaporSMTPKit <- No updates since 0ct. 2020, uses SMTPKitten
|
||||
.package(url: "https://github.com/Kitura/Swift-SMTP", from: "6.0.0"),
|
||||
.package(url: "https://github.com/christophhagen/clairvoyant.git", branch: "main"),
|
||||
.package(url: "https://github.com/christophhagen/clairvoyant.git", from: "0.5.0"),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
|
@ -6,7 +6,7 @@ try LoggingSystem.bootstrap(from: &env)
|
||||
let app = Application(env)
|
||||
defer { app.shutdown() }
|
||||
|
||||
private let semaphore = DispatchSemaphore(value: 1)
|
||||
private let semaphore = DispatchSemaphore(value: 0)
|
||||
Task {
|
||||
try await configure(app)
|
||||
semaphore.signal()
|
||||
|
Loading…
Reference in New Issue
Block a user