From 2348e482725136148c72ed13b88af11e1dfb7e23 Mon Sep 17 00:00:00 2001 From: russointroitoa Date: Sun, 21 Apr 2024 13:50:12 +0200 Subject: [PATCH] Fix comparison --- lib/sidekiq/grouping/redis.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/grouping/redis.rb b/lib/sidekiq/grouping/redis.rb index 5d02e71..639856a 100644 --- a/lib/sidekiq/grouping/redis.rb +++ b/lib/sidekiq/grouping/redis.rb @@ -123,7 +123,7 @@ def server_version # @return [] # def pluck_script - if server_version >= "6.2.0" + if Gem::Version.new(server_version) >= Gem::Version.new("6.2.0") PLUCK_SCRIPT_GTE_6_2_0 else PLUCK_SCRIPT_LT_6_2_0