You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to create a new semaphore using the rate package, I am getting the following error:
rate.NewSemaphore: unsupported RedisConnOpt type asynq.RedisClientOpt
I believe this is happening because calling asynq.MakeRedisClient() on a asynq.RedisClientOpt is returning a *redis.Client which doesn't implement all methods required by redis.UniversalClient. Maybe this is because of a mismatch between the go-redis version? I'm not quite sure.
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?
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):
The text was updated successfully, but these errors were encountered: