File tree 2 files changed +2
-12
lines changed
2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,6 @@ extension RedisClient {
25
25
. mapFromRESP ( )
26
26
}
27
27
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
-
39
28
/// Select the Redis logical database having the specified zero-based numeric index.
40
29
/// - Note: New connections always use the database `0`.
41
30
///
Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ extension RedisConnection {
161
161
guard let pw = password else {
162
162
return eventLoopGroup. next ( ) . makeSucceededFuture ( client)
163
163
}
164
- return client. authorize ( with: pw)
164
+
165
+ return client. send ( command: " AUTH " , with: [ pw] )
165
166
. map { _ in return client }
166
167
}
167
168
}
You can’t perform that action at this time.
0 commit comments