You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/01/08 02:10:37 UTC
[GitHub] [servicecomb-service-center] lilai23 commented on a change in pull request #817: fix bugs of syncer
lilai23 commented on a change in pull request #817:
URL: https://github.com/apache/servicecomb-service-center/pull/817#discussion_r553700638
##########
File path: syncer/server/server.go
##########
@@ -297,10 +298,15 @@ func instFromOtherSC(instance *dump.Instance, m *pb.MappingEntry) bool {
func (s *Server) addToQueue(event *dump.WatchInstanceChangedEvent) {
mapping := s.servicecenter.GetSyncMapping()
- for _, m := range mapping {
+ for index, m := range mapping {
if instFromOtherSC(event.Instance, m) {
log.Debugf("instance[curId:%s, originId:%s] is from another sc, no need to put to queue",
Review comment:
好的
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org