Skip to content

Commit

Permalink
Merge pull request #291 from kelvin13/workaround-swift-issue-60380
Browse files Browse the repository at this point in the history
implement workaround for compiler crash #60380
  • Loading branch information
Joannis authored Aug 14, 2022
2 parents 09c27ef + 6f0e65d commit 6c813b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/MongoClient/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ public final actor MongoConnection: @unchecked Sendable {
self.lastHeartbeat = MongoHandshakeResult(sentAt: sent, handshake: result)
return result
}

// `@inline(never)` needed due to the llvm coroutine splitting issue
// `https://github.com/apple/swift/issues/60380`.
@inline(never)
public func authenticate(
clientDetails: MongoClientDetails?,
using credentials: ConnectionSettings.Authentication,
Expand Down

0 comments on commit 6c813b2

Please sign in to comment.