Commit a7903988 authored by vicotor's avatar vicotor

update

parent 62c4969f
...@@ -54,12 +54,12 @@ func workerResourceInfoKey(addr string) string { ...@@ -54,12 +54,12 @@ func workerResourceInfoKey(addr string) string {
return config.WORKER_RESOURCE_INFO_PREFIX + addr return config.WORKER_RESOURCE_INFO_PREFIX + addr
} }
func workerStatusKey(addr string, nonce int) string { func workerStatusKey(addr string, nonce int64) string {
id := workerId(addr, nonce) id := workerId(addr, nonce)
return fmt.Sprintf("%s_%s", config.WORKER_STATUS_PREFIX, id) return fmt.Sprintf("%s_%s", config.WORKER_STATUS_PREFIX, id)
} }
func workerId(addr string, nonce int) string { func workerId(addr string, nonce int64) string {
return fmt.Sprintf("%s_%d", addr, nonce) return fmt.Sprintf("%s_%d", addr, nonce)
} }
......
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