1
This commit is contained in:
parent
d9013f408e
commit
7dd2331f6c
2
app.go
2
app.go
@ -78,9 +78,9 @@ func (this *app) init(userApp UserApp) {
|
|||||||
var tmpNodeId, tmpInstanceId int
|
var tmpNodeId, tmpInstanceId int
|
||||||
flag.IntVar(&tmpNodeId, "n", 0, "node id")
|
flag.IntVar(&tmpNodeId, "n", 0, "node id")
|
||||||
flag.IntVar(&tmpInstanceId, "i", 0, "instance id")
|
flag.IntVar(&tmpInstanceId, "i", 0, "instance id")
|
||||||
|
flag.Parse()
|
||||||
this.nodeId = int32(tmpNodeId)
|
this.nodeId = int32(tmpNodeId)
|
||||||
this.instanceId = int32(tmpInstanceId)
|
this.instanceId = int32(tmpInstanceId)
|
||||||
flag.Parse()
|
|
||||||
}
|
}
|
||||||
this.uuid.SetMachineId((this.nodeId - 1) * MAX_NODE_ID + this.instanceId)
|
this.uuid.SetMachineId((this.nodeId - 1) * MAX_NODE_ID + this.instanceId)
|
||||||
this.loopCond = sync.NewCond(new(sync.Mutex))
|
this.loopCond = sync.NewCond(new(sync.Mutex))
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package f5
|
package f5
|
||||||
|
|
||||||
const (
|
const (
|
||||||
IM_HTTP_CLI_MGR_RESPONSE = 1
|
IM_HTTP_CLI_MGR_RESPONSE = iota + 1
|
||||||
IM_EXEC_MAIN_THREAD_CB = iota
|
IM_EXEC_MAIN_THREAD_CB
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user