Skip to content

Commit ea781e1

Browse files
committed
73 -- Remove isConnected property requirement from RedisClient
1 parent b08ad54 commit ea781e1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Sources/RediStack/RedisClient.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ import NIO
2323
///
2424
/// See [https://redis.io/commands](https://redis.io/commands)
2525
public protocol RedisClient {
26-
/// Is the client currently connected to Redis?
27-
var isConnected: Bool { get }
28-
2926
/// The `NIO.EventLoop` that this client operates on.
3027
var eventLoop: EventLoop { get }
3128

Sources/RediStack/RedisConnection.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public final class RedisConnection: RedisClient {
105105
}
106106
}
107107
public var eventLoop: EventLoop { return self.channel.eventLoop }
108+
/// Is the connection to Redis still open?
108109
public var isConnected: Bool {
109110
// `Channel.isActive` is set to false before the `closeFuture` resolves in cases where the channel might be
110111
// closed, or closing, before our state has been updated

0 commit comments

Comments
 (0)