2
0
mirror of https://github.com/hibiken/asynqmon.git synced 2025-10-26 16:26:12 +08:00

Update code to use inspeq package

This commit is contained in:
Ken Hibino
2021-01-28 19:47:58 -08:00
parent 4179d00b7b
commit 0626daab0b
7 changed files with 74 additions and 70 deletions

View File

@@ -15,6 +15,7 @@ import (
"github.com/go-redis/redis/v8"
"github.com/gorilla/mux"
"github.com/hibiken/asynq"
"github.com/hibiken/asynq/inspeq"
"github.com/rs/cors"
)
@@ -95,7 +96,7 @@ func main() {
tlsConfig = &tls.Config{ServerName: flagRedisTLS}
}
inspector := asynq.NewInspector(asynq.RedisClientOpt{
inspector := inspeq.New(asynq.RedisClientOpt{
Addr: flagRedisAddr,
DB: flagRedisDB,
Password: flagRedisPassword,