From 17cc8f3746940d3a28f4680cfce3a996e8d08336 Mon Sep 17 00:00:00 2001
From: lihaowei <haoweili35@gmail.com>
Date: Sun, 9 Aug 2020 11:02:32 +0800
Subject: [PATCH] Format codes

---
 registry/nacos/listener.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/registry/nacos/listener.go b/registry/nacos/listener.go
index 4282bf86b..669900736 100644
--- a/registry/nacos/listener.go
+++ b/registry/nacos/listener.go
@@ -132,10 +132,10 @@ func (nl *nacosListener) Callback(services []model.SubscribeService, err error)
 		instance := generateInstance(services[i])
 		newInstanceMap[host] = instance
 		if old, ok := nl.instanceMap[host]; !ok {
-			//instance is not exist in cache,add it to cache
+			// instance is not exist in cache, add it to cache
 			addInstances = append(addInstances, instance)
 		} else {
-			//instance is not different from cache,update it to cache
+			// instance is not different from cache, update it to cache
 			if !reflect.DeepEqual(old, instance) {
 				updateInstances = append(updateInstances, instance)
 			}
@@ -144,7 +144,7 @@ func (nl *nacosListener) Callback(services []model.SubscribeService, err error)
 
 	for host, inst := range nl.instanceMap {
 		if _, ok := newInstanceMap[host]; !ok {
-			//cache  instance is not exist in  new instance list, remove it from  cache
+			// cache instance is not exist in new instance list, remove it from cache
 			delInstances = append(delInstances, inst)
 		}
 	}
-- 
GitLab