Skip to content

Commit

Permalink
Merge pull request #2747 from Mashape/fix/balancer-size
Browse files Browse the repository at this point in the history
fix(balancer) respect the given balancer size
  • Loading branch information
Tieske authored Aug 31, 2017
2 parents c5c13ca + 6e5a403 commit 42962f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/core/balancer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ local get_balancer = function(target)
if not balancer then
-- no balancer yet (or invalidated) so create a new one
balancer, err = ring_balancer.new({
wheelsize = upstream.slots,
wheelSize = upstream.slots,
order = upstream.orderlist,
dns = dns_client,
})
Expand Down Expand Up @@ -221,7 +221,7 @@ local get_balancer = function(target)
-- and can replay changes, but not supported by ring-balancer yet.
-- for now; create a new balancer from scratch
balancer, err = ring_balancer.new({
wheelsize = upstream.slots,
wheelSize = upstream.slots,
order = upstream.orderlist,
dns = dns_client,
})
Expand Down

0 comments on commit 42962f4

Please sign in to comment.