Closed gwkline closed 11 months ago
Looking at your environment, The x package is not compatible with v0.24.x at the moment. I can see we reverted it back to go-redis/v8. Could you try running your snippet when compiled with an older version of github.com/hibiken/asynq
?
Could you test https://github.com/hibiken/asynq/pull/796 and let me know if it fixes this issue.
cc/ @amaury1729
@kamikazechaser #796 does appear to solve this issue!
Describe the bug When trying to create a new semaphore using the rate package, I am getting the following error:
I believe this is happening because calling
asynq.MakeRedisClient()
on aasynq.RedisClientOpt
is returning a*redis.Client
which doesn't implement all methods required byredis.UniversalClient
. Maybe this is because of a mismatch between the go-redis version? I'm not quite sure.To Reproduce
Expected behavior When passing a valid
asynq.RedisClientOpt
torate.NewSemaphore
, there should not be a type coercion error.Environment (please complete the following information):