diff --git a/client/health/health.go b/client/health/health.go index 42924a64..91ea707b 100644 --- a/client/health/health.go +++ b/client/health/health.go @@ -96,12 +96,12 @@ func (monitor *HealthCheckMonitor) Stop() { func (monitor *HealthCheckMonitor) checkWorker() { for { - ctx, cancel := context.WithDeadline(monitor.ctx, time.Now().Add(monitor.timeout)) - err := monitor.doCheck(ctx) + doCtx, cancel := context.WithDeadline(monitor.ctx, time.Now().Add(monitor.timeout)) + err := monitor.doCheck(doCtx) // check if this monitor has been closed select { - case <-ctx.Done(): + case <-monitor.ctx.Done(): cancel() return default: diff --git a/utils/version/version.go b/utils/version/version.go index cd24c6d8..a4cb6c09 100644 --- a/utils/version/version.go +++ b/utils/version/version.go @@ -19,7 +19,7 @@ import ( "strings" ) -var version string = "0.28.1" +var version string = "0.28.2" func Full() string { return version