mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +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()
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue