Skip to content

Commit

Permalink
Update connection_event_listener.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yifeng01 authored and binbin committed Feb 28, 2022
1 parent 6659b8f commit 9a6ab9c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ func (c *ConnectionEventListener) redoRegisterEachService() {

func (c *ConnectionEventListener) CacheInstanceForRedo(serviceName, groupName string, instance model.Instance) {
key := util.GetGroupName(serviceName, groupName)
getInstance, ok := c.registeredInstanceCached.Get(key)
if !ok {
logger.Warnf("CacheInstanceForRedo get cache instance is null,key:%s", key)
}
getInstance, _ := c.registeredInstanceCached.Get(key)
if getInstance != nil && reflect.DeepEqual(getInstance.(model.Instance), instance) {
return
}
Expand Down

0 comments on commit 9a6ab9c

Please sign in to comment.