We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac76fa0 commit ff4ae88Copy full SHA for ff4ae88
Sources/ConnectionPoolModule/ConnectionPoolManager.swift
@@ -139,10 +139,10 @@ public final class ConnectionPoolManager<
139
public func leaseConnection(_ request: Request) {
140
if let executorID = Executor.getExecutorID(), let pool = self.pools[executorID] {
141
pool.leaseConnection(request)
142
+ return
143
}
144
145
let index = self.roundRobinCounter.loadThenWrappingIncrement(ordering: .relaxed) % self.roundRobinPools.count
-
146
self.roundRobinPools[index].leaseConnection(request)
147
148
0 commit comments