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 b5cf0524b7
commit 37bd70ca59
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