mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-21 13:35:51 +08:00
docs: apply recommendaded updates
* additionally, we log an erro in the case the redis client cannot shutdown in the scheduler
This commit is contained in:
@@ -36,8 +36,8 @@ func NewInspector(r RedisConnOpt) *Inspector {
|
||||
return inspector
|
||||
}
|
||||
|
||||
// NewFromRedisClient returns a new instance of Inspector.
|
||||
// Warning: the redis client will not be closed by Asynq, you are responsible for closing.
|
||||
// NewInspectorFromRedisClient returns a new instance of Inspector given a redis.UniversalClient
|
||||
// Warning: The underlying redis connection pool will not be closed by Asynq, you are responsible for closing it.
|
||||
func NewInspectorFromRedisClient(c redis.UniversalClient) *Inspector {
|
||||
return &Inspector{
|
||||
rdb: rdb.NewRDB(c),
|
||||
|
||||
Reference in New Issue
Block a user