mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-10 11:31:58 +08:00
Add Close to Inspector
This commit is contained in:
parent
69d7ec725a
commit
a293efcdab
@ -235,7 +235,7 @@ type Result struct {
|
|||||||
Deadline time.Time
|
Deadline time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close closes the connection with redis server.
|
// Close closes the connection with redis.
|
||||||
func (c *Client) Close() error {
|
func (c *Client) Close() error {
|
||||||
return c.rdb.Close()
|
return c.rdb.Close()
|
||||||
}
|
}
|
||||||
|
@ -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.
|
// Queues returns a list of all queue names.
|
||||||
func (i *Inspector) Queues() ([]string, error) {
|
func (i *Inspector) Queues() ([]string, error) {
|
||||||
return i.rdb.AllQueues()
|
return i.rdb.AllQueues()
|
||||||
|
Loading…
Reference in New Issue
Block a user