diff --git a/client.go b/client.go index 5699746..1380968 100644 --- a/client.go +++ b/client.go @@ -235,7 +235,7 @@ type Result struct { Deadline time.Time } -// Close closes the connection with redis server. +// Close closes the connection with redis. func (c *Client) Close() error { return c.rdb.Close() } diff --git a/inspector.go b/inspector.go index 4c31ac8..99bb659 100644 --- a/inspector.go +++ b/inspector.go @@ -27,6 +27,11 @@ func NewInspector(r RedisConnOpt) *Inspector { } } +// Close closes the connection with redis. +func (i *Inspector) Close() error { + return i.rdb.Close() +} + // Queues returns a list of all queue names. func (i *Inspector) Queues() ([]string, error) { return i.rdb.AllQueues()