Skip to content

Commit

Permalink
Merge branch 'main' into async-serve
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed May 13, 2024
2 parents 7ab7e5b + d9fa0d3 commit 8e39343
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Vapor/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public final class Application: Sendable {
private let _lifecycle: NIOLockedValueBox<Lifecycle>
private let _locks: NIOLockedValueBox<Locks>

@available(*, noasync, message: "This initialiser cannot be used in async contexts, Application.makeApplication() instead")
@available(*, noasync, message: "This initialiser cannot be used in async contexts, use Application.make(_:_:) instead")
public convenience init(
_ environment: Environment = .development,
_ eventLoopGroupProvider: EventLoopGroupProvider = .singleton
Expand Down
4 changes: 3 additions & 1 deletion Sources/Vapor/Utilities/DirectoryConfiguration.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#else
import Darwin.C
#endif
Expand Down
4 changes: 3 additions & 1 deletion Sources/Vapor/Utilities/DotEnv.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#else
import Darwin
#endif
Expand Down

0 comments on commit 8e39343

Please sign in to comment.