1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Make the redis server version error clearer (#4340)

This commit is contained in:
Ammar Ali 2019-10-16 23:49:08 +03:00 committed by Mike Perham
parent 4803d87969
commit 9275dca070

View file

@ -58,7 +58,7 @@ module Sidekiq
# touch the connection pool so it is created before we
# fire startup and start multithreading.
ver = Sidekiq.redis_info["redis_version"]
raise "You are using Redis v#{ver}, Sidekiq requires Redis v4.0.0 or greater" if ver < "4"
raise "You are connecting to Redis v#{ver}, Sidekiq requires Redis v4.0.0 or greater" if ver < "4"
# Since the user can pass us a connection pool explicitly in the initializer, we
# need to verify the size is large enough or else Sidekiq's performance is dramatically slowed.