Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drmarjanovic committed Apr 9, 2023
1 parent ff85b9d commit 1a48bad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/redis/src/main/scala/zio/redis/api/Connection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ trait Connection extends RedisEnvironment {
* format.
*
* @return
* a unique string composed of 'property=value' fields separated by a space character.
* information and statistics about the current client
*/
final def clientInfo: IO[RedisError, ClientInfo] = {
val command = RedisCommand(ClientInfo, NoInput, ClientInfoOutput, executor)
Expand Down Expand Up @@ -153,7 +153,7 @@ trait Connection extends RedisEnvironment {
* @param clientIds
* filters the list by client IDs
* @return
* a unique string composed of 'property=value' fields separated by a space character
* a list of information and statistics about clients
*/
final def clientList(
clientType: Option[ClientType] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ trait ConnectionSpec extends BaseSpec {
redis <- ZIO.service[Redis]
id <- redis.clientId
info <- ZIO.serviceWithZIO[Redis](_.clientInfo)
} yield assert(info.id)(equalTo(id))
} yield assert(info.id)(equalTo(id)) && assert(info.name)(isNone)
}
),
suite("clientKill")(
Expand Down

0 comments on commit 1a48bad

Please sign in to comment.