From a591870b449e81e656daed21db2bb5502e99e5d0 Mon Sep 17 00:00:00 2001 From: Fangliding Date: Sat, 8 Aug 2026 13:07:09 +0800 Subject: [PATCH] Pass ctx correctly --- app/observatory/burst/healthping.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/observatory/burst/healthping.go b/app/observatory/burst/healthping.go index b5cc021fb..40608bfed 100644 --- a/app/observatory/burst/healthping.go +++ b/app/observatory/burst/healthping.go @@ -172,13 +172,13 @@ func (h *HealthPing) doCheck(ctx context.Context, tags []string, duration time.D for _, tag := range tags { handler := tag client := newPingClient( - h.ctx, + ctx, h.dispatcher, h.Settings.Destination, h.Settings.Timeout, handler, ) - for i := 0; i < rounds; i++ { + for range rounds { delay := time.Duration(0) if duration > 0 { delay = time.Duration(dice.RollInt63n(int64(duration)))