robotLJW commented on a change in pull request #228:
URL: https://github.com/apache/servicecomb-kie/pull/228#discussion_r756543007
##########
File path: server/datasource/etcd/key/key.go
##########
@@ -28,8 +28,27 @@ const (
keyCounter = "counter"
keyHistory = "kv-history"
keyTrack = "track"
+ syncer = "syncer"
+ task = "task"
+ tombstone = "tombstone"
)
+func getSyncRootKey() string {
+ return split + syncer + split + task
+}
+
+func getTombstoneRootKey() string {
+ return split + tombstone
+}
+
+func TaskKey(domain, project, timestamp, taskID string) string {
Review comment:
结构体里面其实是int64 这边主要是组装key,所以使用string
--
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]