mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 23:41:09 +02:00
registry: fix reporter client context on config change (#5392)
This commit is contained in:
parent
d383c13b48
commit
f876e2f31d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue