diff --git a/internal/registry/reporter.go b/internal/registry/reporter.go index e647659a2..f34b87e91 100644 --- a/internal/registry/reporter.go +++ b/internal/registry/reporter.go @@ -59,7 +59,7 @@ func (r *Reporter) OnConfigChange(ctx context.Context, cfg *config.Config) { } if len(services) > 0 { - ctx, cancel := context.WithCancel(context.TODO()) + ctx, cancel := context.WithCancel(ctx) go runReporter(ctx, pb.NewRegistryClient(registryConn), services) r.cancel = cancel }