Skip to content

Commit

Permalink
Workaround nightly compiler crash
Browse files Browse the repository at this point in the history
Motivation:

Nightly toolchains are crashing when compiling this project. This is
tracked in swiftlang/swift#78112

Modifications:

- Add extra type info as this appears to work around the crash.

Result:

CI green on nightly toolchains.
  • Loading branch information
glbrntt committed Feb 3, 2025
1 parent b549df5 commit 98d634a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ extension GRPCChannel {
return
}

let (enqueued, loadBalancer) = self.state.withLock { state in
// Explicitly adding the types works around: https://github.com/swiftlang/swift/issues/78112
let (enqueued, loadBalancer) = self.state.withLock { state -> (Bool, LoadBalancer?) in
state.enqueue(continuation: continuation, waitForReady: waitForReady, id: id)
}

Expand Down

0 comments on commit 98d634a

Please sign in to comment.