Skip to content

Commit

Permalink
Merge pull request #386 from TarsCloud/optimize_log
Browse files Browse the repository at this point in the history
remove invaliad code
  • Loading branch information
lbbniu authored Sep 3, 2022
2 parents 6a42deb + 18c9d89 commit fe7cab3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions tars/endpointmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,14 +429,6 @@ func (e *tarsEndpointManager) findAndSetObj(q *queryf.QueryF) error {
return err
}

// compare, assert in same order
/*
if endpoint.IsEqual(&activeEp, &e.activeEpf) {
TLOG.Debug("endpoint not change: ", e.objName)
return nil
}
*/

if reflect.DeepEqual(&activeEp, &e.activeEpf) {
TLOG.Debugf("endpoint not change: %s, set: %s", e.objName, setDivision)
return nil
Expand Down
1 change: 1 addition & 0 deletions tars/util/consistenthash/consistenthash.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"sync"
)

// Deprecated: removed in next version
// ChMap consistent hash map
type ChMap struct {
lock *sync.RWMutex
Expand Down

0 comments on commit fe7cab3

Please sign in to comment.