revert queue redis

This commit is contained in:
Andre Medeiros 2022-11-01 09:53:09 -04:00
parent 61dc3b558f
commit 484876adab

View file

@ -56,19 +56,13 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
} }
defer db.Close() defer db.Close()
qredis, err := cmdutil.NewRedisClient(ctx, 4)
if err != nil {
return err
}
defer qredis.Close()
redis, err := cmdutil.NewRedisClient(ctx, consumers) redis, err := cmdutil.NewRedisClient(ctx, consumers)
if err != nil { if err != nil {
return err return err
} }
defer redis.Close() defer redis.Close()
queue, err := cmdutil.NewQueueClient(logger, qredis, "worker") queue, err := cmdutil.NewQueueClient(logger, redis, "worker")
if err != nil { if err != nil {
return err return err
} }