File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,6 @@ extension RedisClient {
2525 . mapFromRESP ( )
2626 }
2727
28- /// Request for authentication in a password-protected Redis server.
29- ///
30- /// [https://redis.io/commands/auth](https://redis.io/commands/auth)
31- /// - Parameter password: The password being used to access the Redis server.
32- /// - Returns: An `EventLoopFuture` that resolves when the connection has been authorized, or fails with a `RedisError`.
33- @inlinable
34- public func authorize( with password: String ) -> EventLoopFuture < Void > {
35- return send ( command: " AUTH " , with: [ password] )
36- . map { _ in return ( ) }
37- }
38-
3928 /// Select the Redis logical database having the specified zero-based numeric index.
4029 /// - Note: New connections always use the database `0`.
4130 ///
Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ extension RedisConnection {
161161 guard let pw = password else {
162162 return eventLoopGroup. next ( ) . makeSucceededFuture ( client)
163163 }
164- return client. authorize ( with: pw)
164+
165+ return client. send ( command: " AUTH " , with: [ pw] )
165166 . map { _ in return client }
166167 }
167168 }
You can’t perform that action at this time.
0 commit comments