From 330e22daccfba7ef5078c1ddd88666b642fb01df Mon Sep 17 00:00:00 2001
From: Joe Zou <yixian.zou@gmail.com>
Date: Mon, 27 Apr 2020 23:30:47 +0800
Subject: [PATCH] change variable name

---
 config/service_config.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/service_config.go b/config/service_config.go
index f45e78cd6..4dbd58439 100644
--- a/config/service_config.go
+++ b/config/service_config.go
@@ -109,7 +109,7 @@ func NewServiceConfig(id string, context context.Context) *ServiceConfig {
 
 // Get Random Port
 func getRandomPort(protocolConfigs []*ProtocolConfig) *list.List {
-	l := list.New()
+	ports := list.New()
 	for _, proto := range protocolConfigs {
 		if len(proto.Port) > 0 {
 			continue
@@ -119,10 +119,10 @@ func getRandomPort(protocolConfigs []*ProtocolConfig) *list.List {
 		if err != nil {
 			panic(perrors.New(fmt.Sprintf("Get tcp port error,err is {%v}", err)))
 		}
-		l.PushBack(strings.Split(tcp.Addr().String(), ":")[1])
+		ports.PushBack(strings.Split(tcp.Addr().String(), ":")[1])
 		defer tcp.Close()
 	}
-	return l
+	return ports
 }
 
 // Export ...
-- 
GitLab