From 14433e817f10e93ea0cfbaa948141dc69cd00543 Mon Sep 17 00:00:00 2001 From: Agraj Garg Date: Wed, 24 Jan 2024 17:34:40 +0530 Subject: [PATCH] case fix for using extended polling strategy --- lib/shoryuken/options.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shoryuken/options.rb b/lib/shoryuken/options.rb index 3c68fac3..1d782693 100644 --- a/lib/shoryuken/options.rb +++ b/lib/shoryuken/options.rb @@ -65,8 +65,8 @@ def polling_strategy(group) Polling::WeightedRoundRobin when 'StrictPriority' Polling::StrictPriority - when Class - strategy + when String + Object.const_get(strategy) else raise ArgumentError, "#{strategy} is not a valid polling_strategy" end