Skip to content
Snippets Groups Projects
Commit 1c1ad6b7 authored by lihaowei's avatar lihaowei Committed by AlexStocks
Browse files

Correct words and Format codes

parent a29bcd1a
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ type Response struct {
atta map[string]string
}
// nolint
// NewResponse create a new Response.
func NewResponse(reply interface{}, atta map[string]string) *Response {
return &Response{
reply: reply,
......
......@@ -132,7 +132,7 @@ 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 does not exist in cache, add it to cache
addInstances = append(addInstances, instance)
} else {
// instance is not different from cache, update it to cache
......@@ -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 does not exist in new instance list, remove it from cache
delInstances = append(delInstances, inst)
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment