Fix liveness check not quit after canceled (#8454)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/8478/head
congqixia 2021-09-24 12:47:54 +08:00 committed by GitHub
parent 66bf329ad3
commit a182326c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -356,6 +356,7 @@ func (s *Session) LivenessCheck(ctx context.Context, ch <-chan bool, callback fu
return
case <-ctx.Done():
log.Debug("liveness exits due to context done")
return
}
}
}