mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-22 14:25:28 +00:00
try again with a queue specific redis connection
This commit is contained in:
parent
164652e2e4
commit
ee1d1d32d4
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue