fix(agent): removed redundant code in docker check as well
This commit is contained in:
parent
b5cf0524b7
commit
37bd70ca59
|
@ -2900,9 +2900,6 @@ func (a *Agent) addCheck(check *structs.HealthCheck, chkType *structs.CheckType,
|
|||
Client: a.dockerClient,
|
||||
StatusHandler: statusHandler,
|
||||
}
|
||||
if prev := a.checkDockers[cid]; prev != nil {
|
||||
prev.Stop()
|
||||
}
|
||||
dockerCheck.Start()
|
||||
a.checkDockers[cid] = dockerCheck
|
||||
|
||||
|
|
Loading…
Reference in New Issue