tianxiaoliang commented on a change in pull request #90: #79 record polling
history
URL: https://github.com/apache/servicecomb-kie/pull/90#discussion_r378055513
##########
File path: server/resource/v1/kv_resource.go
##########
@@ -189,6 +200,37 @@ func returnData(rctx *restful.Context, domain
interface{}, project string, label
}
}
+//RecordPollingDetail to record data after get or list
+func RecordPollingDetail(context *restful.Context, revStr, wait, domain,
project string, labels map[string]string, limit, offset int64, insId string) {
+ Wg.Add(1)
+ data := &model.PollingDetail{}
+ data.ID = insId + domain
Review comment:
insId + domain只是数据库里的unique id, 不用拼在一起,id就是服务端生成的uuid,增加个字段session
id来代替这个insId
----------------------------------------------------------------
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]
With regards,
Apache Git Services