From c073d9d4058fffe34178b6de3074f14f068eb499 Mon Sep 17 00:00:00 2001 From: Valentin Knabel Date: Fri, 26 Jul 2024 15:29:54 +0200 Subject: [PATCH] docs(health): explain why ctx is not used --- healthstatus/async-check.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/healthstatus/async-check.go b/healthstatus/async-check.go index 56e35f3..3013c48 100644 --- a/healthstatus/async-check.go +++ b/healthstatus/async-check.go @@ -40,6 +40,8 @@ func (c *AsyncHealthCheck) ServiceName() string { func (c *AsyncHealthCheck) Check(context.Context) (HealthResult, error) { c.log.Debug("checked async") if c.ticker == nil { + // The context coming in is bound to a single request + // but the ticker should be started in background c.Start(context.Background()) //nolint:contextcheck } return c.current.Status, c.current.Err