From 2d45f210db1409c378848d5f5a4a71a9a0ab882c Mon Sep 17 00:00:00 2001 From: d1slike Date: Wed, 3 Jun 2020 14:04:49 +0300 Subject: [PATCH] fix linter --- routing/routing.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routing/routing.go b/routing/routing.go index ee80bd6..9aa406b 100644 --- a/routing/routing.go +++ b/routing/routing.go @@ -14,7 +14,8 @@ func InitRoutes(configs structure.RoutingConfig) { newAddressMap := make(map[string]bool) newInnerAddressMap := make(map[string]bool) newAuthUserAddressMap := make(map[string]bool) - for _, backend := range configs { + for i := range configs { + backend := &configs[i] if backend.Address.IP == "" || backend.Address.Port == "" || len(backend.Endpoints) == 0 { continue }