Skip to content

Commit 833fc33

Browse files
committed
Fix RedisConnectionPool.leaseConnection code example
1 parent 61cc879 commit 833fc33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/RediStack/RedisConnectionPool.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ extension RedisConnectionPool {
159159
/// For example:
160160
/// ```swift
161161
/// let countFuture = pool.leaseConnection {
162-
/// $0.logging(to: myLogger)
163-
/// .authorize(with: userPassword)
162+
/// let client = $0.logging(to: myLogger)
163+
/// return client.authorize(with: userPassword)
164164
/// .flatMap { connection.select(database: userDatabase) }
165165
/// .flatMap { connection.increment(counterKey) }
166166
/// }

0 commit comments

Comments
 (0)