We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0862006 commit 2fd4db6Copy full SHA for 2fd4db6
Sources/RediStack/RedisConnectionPool.swift
@@ -209,7 +209,7 @@ extension RedisConnectionPool {
209
// disallow subscriptions on all connections by default to enforce our management of PubSub state
210
connection.allowSubscriptions = false
211
connection.onUnexpectedClosure = { [weak self, weak connection] in
212
- guard let connection else { return }
+ guard let connection = connection else { return }
213
self?.configuration.onUnexpectedConnectionClose?(connection)
214
}
215
return connection
0 commit comments