From b8fffb4c8d9514311761813a1fc9e4b0510b94e0 Mon Sep 17 00:00:00 2001 From: GLYASAI Date: Tue, 4 Dec 2018 10:39:39 +0800 Subject: [PATCH] [FIX] fix some typos --- hack/contrib/docker/gateway/nginx/lua/balancer.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/contrib/docker/gateway/nginx/lua/balancer.lua b/hack/contrib/docker/gateway/nginx/lua/balancer.lua index 2c3500d8f..893b3484e 100644 --- a/hack/contrib/docker/gateway/nginx/lua/balancer.lua +++ b/hack/contrib/docker/gateway/nginx/lua/balancer.lua @@ -2,9 +2,9 @@ local ngx_balancer = require("ngx.balancer") local round_robin = require("balancer.round_robin") local chash = require("balancer.chash") -local json = require("cjson") -- local sticky = require("balancer.sticky") -- local ewma = require("balancer.ewma") +local json = require("cjson") local config = require("config") local DEFAULT_LB_ALG = "round_robin" @@ -16,7 +16,7 @@ local IMPLEMENTATIONS = { } local _M = {} --- svae all backend balancer data +-- save all backend balancer data local balancers = {} -- measured in seconds @@ -26,7 +26,7 @@ local BACKENDS_SYNC_INTERVAL = 1 -- get_implementation get backend balance type -- if set sessionAffinityConfig.name is cookie, type is sticky --- idf set upstream-hash-by, type is chash +-- if set upstream-hash-by, type is chash local function get_implementation(backend) local name = backend["load-balance"] or DEFAULT_LB_ALG