removed unneeded version
This commit is contained in:
parent
3841aee4b2
commit
de8e795254
2 changed files with 2 additions and 2 deletions
|
|
@ -437,7 +437,7 @@ func RunRPC() error {
|
||||||
} else {
|
} else {
|
||||||
ret.Encode("ok")
|
ret.Encode("ok")
|
||||||
msg.Respond(resp)
|
msg.Respond(resp)
|
||||||
tactical.AgentUpdate(p.Data["url"], p.Data["inno"], p.Data["version"])
|
tactical.AgentUpdate(p.Data["url"], p.Data["inno"])
|
||||||
atomic.StoreUint32(&agentUpdateLocker, 0)
|
atomic.StoreUint32(&agentUpdateLocker, 0)
|
||||||
nc.Flush()
|
nc.Flush()
|
||||||
nc.Close()
|
nc.Close()
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ func UninstallCleanup() {
|
||||||
tasks.CleanupSchedTasks()
|
tasks.CleanupSchedTasks()
|
||||||
}
|
}
|
||||||
|
|
||||||
func AgentUpdate(url, inno, version string) {
|
func AgentUpdate(url string, inno string) {
|
||||||
time.Sleep(time.Duration(utils.RandRange(1, 15)) * time.Second)
|
time.Sleep(time.Duration(utils.RandRange(1, 15)) * time.Second)
|
||||||
system.KillHungUpdates()
|
system.KillHungUpdates()
|
||||||
CleanupAgentUpdates()
|
CleanupAgentUpdates()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue