fix(agent): removed redundant code in docker check as well

This commit is contained in:
Alessandro De Blasis 2022-08-29 18:15:59 +01:00
parent c0d647d11e
commit 26cc56bc68
1 changed files with 0 additions and 3 deletions

View File

@ -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