From 6e5a4036248465b340a3a04480efe046eac6eec4 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Sun, 30 Jul 2017 23:26:46 +0200 Subject: [PATCH] fix(balancer) respect the given balancer size Due to a typo the configured balancer size was not set up, and the default size of 1000 was always used. This fixes some of the (occasionally) failing tests. --- kong/core/balancer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kong/core/balancer.lua b/kong/core/balancer.lua index 0e7fae318de..cc9cca91b04 100644 --- a/kong/core/balancer.lua +++ b/kong/core/balancer.lua @@ -173,7 +173,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, }) @@ -219,7 +219,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, })