Skip to content

Commit

Permalink
case fix for using extended polling strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Agraj Garg authored and Agraj Garg committed Jan 24, 2024
1 parent 6685016 commit 14433e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/shoryuken/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14433e8

Please sign in to comment.