Merge pull request #1369 from fatedier/dev

bump version to v0.28.2
This commit is contained in:
fatedier 2019-08-09 12:59:13 +08:00 committed by GitHub
commit 134a46c00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -19,7 +19,7 @@ import (
"strings"
)
var version string = "0.28.1"
var version string = "0.28.2"
func Full() string {
return version