tianxiaoliang commented on a change in pull request #228:
URL: https://github.com/apache/servicecomb-kie/pull/228#discussion_r757358142



##########
File path: server/datasource/etcd/kv/kv_dao.go
##########
@@ -59,42 +56,98 @@ func (s *Dao) Create(ctx context.Context, kv *model.KVDoc) 
(*model.KVDoc, error)
        return kv, nil
 }
 
+func create(ctx context.Context, kv *model.KVDoc, options 
...datasource.WriteOption) (bool, error) {
+       opts := datasource.NewWriteOptions(options...)

Review comment:
       60-65抽离到外边的函数里就可以了




-- 
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]


Reply via email to