mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
registry: fix reporter client context on config change
This commit is contained in:
parent
2bb70258c3
commit
65ade8a67e
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