2
0
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:
Mohammed Sohail
2024-10-19 09:05:17 +03:00
parent 5daa3c52ed
commit 461d922616
4 changed files with 13 additions and 11 deletions

View File

@@ -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),