From 385c03d505302abda7b7a3d742f385879d603167 Mon Sep 17 00:00:00 2001 From: Xargin Date: Wed, 13 Nov 2019 18:45:18 +0800 Subject: [PATCH] fix code --- ch6-cloud/ch6-05-load-balance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch6-cloud/ch6-05-load-balance.md b/ch6-cloud/ch6-05-load-balance.md index 5783e52..e7c23e0 100644 --- a/ch6-cloud/ch6-05-load-balance.md +++ b/ch6-cloud/ch6-05-load-balance.md @@ -49,7 +49,7 @@ func request(params map[string]interface{}) error { idx := 0 for i := 0; i < maxRetryTimes; i++ { - err = apiRequest(params, indexes[idx]) + err = apiRequest(params, endpoints[idx]) if err == nil { break }