Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error [cannot use redisClient (type *"github.com/go-redis/redis/v7".Client) as type *"github.com/go-redis/redis".Client in argument to rmq.OpenConnectionWithRedisClient] #78

Closed
toni-moreno opened this issue Mar 29, 2020 · 1 comment

Comments

@toni-moreno
Copy link

toni-moreno commented Mar 29, 2020

Hi to everybody here, and thank you for this project.

I'm trying to connect to my redis with password using rmq.OpenConnectionWithRedisClient()

I've working with gomodules and I've imported last rmq commit with.

go get github.com/adjust/rmq@f9bb31b720096e775f1e83f2c194bbe3409e8688

Also importing redis client as described in https://github.com/go-redis/redis

go get github.com/go-redis/redis/v7

and

import (
	"github.com/adjust/rmq"
	"github.com/go-redis/redis/v7"
)

But this error happens.

pkg/agent/rqm/rqm.go:63:43: cannot use redisClient (type *"github.com/go-redis/redis/v7".Client) as type *"github.com/go-redis/redis".Client in argument to rmq.OpenConnectionWithRedisClient

Could somebody told me what I did wrong

@toni-moreno
Copy link
Author

It seem it works if downloading and importing without version.

go get github.com/go-redis/redis

import (
	"github.com/adjust/rmq"
	"github.com/go-redis/redis"
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant