Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.10.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaciv committed Nov 22, 2023
2 parents dea2004 + 0a4d2f3 commit 54c276e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ trait ConnectionConnectionApi extends NodeConnectionApi {

private final class Auth(username: Opt[String], password: String) extends RedisUnitCommand with ConnectionCommand {
val encoded: Encoded = encoder("AUTH").optAdd(username).add(password).result

// hide password value in error messages
override def toString: String =
s""""AUTH" ${username.mapOr("", u => s""""$u" """)}"<password>""""
}

private object Quit extends RedisUnitCommand with ConnectionCommand {
Expand All @@ -60,4 +64,3 @@ trait ConnectionConnectionApi extends NodeConnectionApi {
val encoded: Encoded = encoder("SELECT").add(index).result
}
}

0 comments on commit 54c276e

Please sign in to comment.