Commit 62c4969f authored by vicotor's avatar vicotor

update

parent 9cf348a5
......@@ -54,8 +54,13 @@ func workerResourceInfoKey(addr string) string {
return config.WORKER_RESOURCE_INFO_PREFIX + addr
}
func workerStatusKey(addr string, nonce int64) string {
return fmt.Sprintf("%s_%s_%d", config.WORKER_STATUS_PREFIX, addr, nonce)
func workerStatusKey(addr string, nonce int) string {
id := workerId(addr, nonce)
return fmt.Sprintf("%s_%s", config.WORKER_STATUS_PREFIX, id)
}
func workerId(addr string, nonce int) string {
return fmt.Sprintf("%s_%d", addr, nonce)
}
func newManagerClient(endpoint string) (omanager.NodeManagerServiceClient, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment