From e2b1fb58e9ac603d7250b87092903bfbf460578b Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 16 Feb 2023 23:33:39 +0100 Subject: [PATCH] Fix semaphore --- Package.swift | 2 +- Sources/Run/main.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 7e5367c..689519f 100644 --- a/Package.swift +++ b/Package.swift @@ -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( diff --git a/Sources/Run/main.swift b/Sources/Run/main.swift index f37a67d..20872cc 100644 --- a/Sources/Run/main.swift +++ b/Sources/Run/main.swift @@ -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()