client: fix race in heartbeat tracker (#14119)
This commit is contained in:
parent
7728cf5a9a
commit
db97e08163
|
@ -70,7 +70,7 @@ func (h *heartbeatStop) shouldStopAfter(now time.Time, interval time.Duration) b
|
|||
func (h *heartbeatStop) watch() {
|
||||
// If we never manage to successfully contact the server, we want to stop our allocs
|
||||
// after duration + start time
|
||||
h.lastOk = time.Now()
|
||||
h.setLastOk(time.Now())
|
||||
stop := make(chan string, 1)
|
||||
var now time.Time
|
||||
var interval time.Duration
|
||||
|
|
Loading…
Reference in New Issue