-
Notifications
You must be signed in to change notification settings - Fork 203
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
Getting rmq fails: wrapper.rawClient.FlushDb undefined #71
Comments
Thanks for reporting! Looks like they renamed the function from We'll look into fixing this here 👍 |
@rverton: So actually the issue is a bit different. rmq still uses https://github.com/golang/dep, and in our https://github.com/adjust/rmq/blob/master/Gopkg.toml file we declare that rmq expects go-redis version 6.9.2. You seem to be using go-redis master, which contains the breaking change mentioned above. We will probably add go module support for rmq later #67. For now I'd suggest you try using go-redis version 6.9.2 and then rmq should work. Please let me know if that works for you. Thanks! |
Hello, Here the same error. first. @wellle , and after doing git checkout 6.9.2 to the go-redis lib this happens when trying to run the producer.go example vant@mypc:~/$ go run main.go
2020/03/07 08:29:59 rmq redis error is not nil redis: can't marshal []string (consider implementing encoding.BinaryMarshaler)
panic: rmq redis error is not nil redis: can't marshal []string (consider implementing encoding.BinaryMarshaler)
goroutine 1 [running]:
log.Panicf(0x687fd8, 0x1d, 0xc0000d1dd8, 0x1, 0x1)
/usr/local/go/src/log/log.go:345 +0xc0
github.com/adjust/rmq.checkErr(...)
/home/vant/go/src/github.com/adjust/rmq/redis_wrapper.go:96
github.com/adjust/rmq.RedisWrapper.LPush(0xc0000b00f0, 0xc0000fe020, 0x1b, 0xc000012020, 0x1, 0x1, 0xc000012020)
/home/vant/go/src/github.com/adjust/rmq/redis_wrapper.go:37 +0x15e
github.com/adjust/rmq.(*redisQueue).Publish(0xc000100000, 0xc000012020, 0x1, 0x1, 0x1)
/home/vant/go/src/github.com/adjust/rmq/queue.go:97 +0x6a
main.main()
/home/vant/proyectos/tokio/task_queue_poc/rmq/example/producer/main.go:24 +0x228
exit status 2 There is any way to fix this error? |
same error |
@toni-moreno @fmd97: I just merged #76 (thanks to @hishamkaram!). Can you try again? Thanks! |
@wellle everything is fine now, thanks ! |
Thanks for checking, I'll close the issue 👍 |
Hi,
I am running Go 1.13.1 here (
go version go1.13.1 darwin/amd64
). When getting/downloadingrmq
, I get an error thatwrapper.rawClient.FlushDb
is not defined. I guess it's because something in the redis lib changed.If there is anything else you need from me, just let me know.
Thanks,
Robin
The text was updated successfully, but these errors were encountered: