little-cui commented on a change in pull request #946:
URL:
https://github.com/apache/servicecomb-service-center/pull/946#discussion_r613012920
##########
File path: datasource/mongo/sd/listwatch_inner.go
##########
@@ -71,8 +71,13 @@ func (lw *mongoListWatch) DoWatch(ctx context.Context, f
func(*sdcommon.ListWatc
if resumeToken != nil {
csOptions.SetResumeAfter(resumeToken)
}
-
- resp, err := client.GetMongoClient().Watch(ctx, lw.Key, md.Pipeline{},
csOptions)
+ pipline := md.Pipeline{}
+ if lw.Key == instance {
+ // ignore instance refresh_time change event.
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:
[email protected]