Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tvoran committed Sep 13, 2024
1 parent 33bdb23 commit f7b97ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/vaultstaticsecret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ func (r *VaultStaticSecretReconciler) ensureEventWatcher(ctx context.Context, o
// being garbage collected before the goroutine is started/evaluated
wg := &sync.WaitGroup{}
wg.Add(1)
go func() {
go func(ctx context.Context, o *secretsv1beta1.VaultStaticSecret, wsClient *vault.WebsocketClient, stoppedCh chan struct{}) {
defer wg.Done()
go r.getEvents(watchCtx, o, wsClient, stoppedCh)
}()
}(ctx, o, wsClient, stoppedCh)
wg.Wait()

return nil
Expand Down

0 comments on commit f7b97ce

Please sign in to comment.