mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-26 07:42:17 +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
|
||||
}
|
||||
|
||||
// Close closes the connection with redis server.
|
||||
// Close closes the connection with redis.
|
||||
func (c *Client) Close() error {
|
||||
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.
|
||||
func (i *Inspector) Queues() ([]string, error) {
|
||||
return i.rdb.AllQueues()
|
||||
|
Loading…
Reference in New Issue
Block a user