mirror of https://github.com/status-im/consul.git
fix(agent): removed redundant code in docker check as well
This commit is contained in:
parent
c0d647d11e
commit
26cc56bc68
|
@ -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