Misc/minor clean up. (#3183)
Cosmetic. While thinking through how to structure probing better, noticing small things here and there. Cleaning up and making some small PRs along the way.
This commit is contained in:
@@ -120,15 +120,13 @@ func (p *ProbeController) Reset() {
|
||||
|
||||
func (p *ProbeController) ProbeClusterDone(info ccutils.ProbeClusterInfo) {
|
||||
p.lock.Lock()
|
||||
defer p.lock.Unlock()
|
||||
|
||||
if p.probeClusterId != info.Id {
|
||||
p.params.Logger.Debugw("not expected probe cluster", "probeClusterId", p.probeClusterId, "resetProbeClusterId", info.Id)
|
||||
p.lock.Unlock()
|
||||
return
|
||||
} else {
|
||||
p.doneProbeClusterInfo = info
|
||||
}
|
||||
|
||||
p.doneProbeClusterInfo = info
|
||||
p.lock.Unlock()
|
||||
}
|
||||
|
||||
func (p *ProbeController) MaybeFinalizeProbe(
|
||||
|
||||
Reference in New Issue
Block a user