try again with a queue specific redis connection

This commit is contained in:
Andre Medeiros 2022-11-03 10:30:50 -04:00
parent 164652e2e4
commit ee1d1d32d4

View file

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