little-cui commented on a change in pull request #223:
URL: https://github.com/apache/servicecomb-kie/pull/223#discussion_r731540142
##########
File path: server/resource/v1/kv_resource.go
##########
@@ -200,6 +202,16 @@ func (r *KVResource) List(rctx *restful.Context) {
func returnData(rctx *restful.Context, request *model.ListKVRequest) {
revStr := rctx.ReadQueryParameter(common.QueryParamRev)
wait := rctx.ReadQueryParameter(common.QueryParamWait)
+ if wait != "" {
+ duration, err := time.ParseDuration(wait)
+ if err != nil {
+ return
Review comment:
错误要返回客户端正确的错误码,WriteErrResponse(rctx, config.ErrInvalidParams,
err.Error())
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]