Permalink
Browse files

Merge pull request #11 from fl00r/patch-1

Fixed opts validation
  • Loading branch information...
2 parents d93dcac + 173b787 commit 19829f9158df8e78ca84017bd65f8841bdd6b7e8 @funny-falcon funny-falcon committed Oct 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tarantool.rb
View
@@ -32,7 +32,7 @@ def new(conf)
if %w{round_robin master_first}.include?(replica_strategy)
replica_strategy = replica_strategy.to_sym
end
- unless [:round_robin, :master_first].include?(replica_strategy)
+ unless [:round_robin, :master_first, :prefer_slave].include?(replica_strategy)
raise ArgumentError, "Shard strategy could be :round_robin or :master_first, got #{replica_strategy.inspect}"
end

0 comments on commit 19829f9

Please sign in to comment.