mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
use origin context
This commit is contained in:
parent
1a5a9f1758
commit
27b3a39f2b
2 changed files with 18 additions and 20 deletions
|
@ -82,12 +82,12 @@ func (mgr *Manager) RunLeased(ctx context.Context) error {
|
|||
})
|
||||
eg, ctx := errgroup.WithContext(ctx)
|
||||
eg.Go(func() error {
|
||||
sessionSyncer := newSessionSyncer(ctx, mgr)
|
||||
sessionSyncer := newSessionSyncer(mgr)
|
||||
defer sessionSyncer.Close()
|
||||
return fmt.Errorf("session syncer error: %w", sessionSyncer.Run(ctx))
|
||||
})
|
||||
eg.Go(func() error {
|
||||
userSyncer := newUserSyncer(ctx, mgr)
|
||||
userSyncer := newUserSyncer(mgr)
|
||||
defer userSyncer.Close()
|
||||
return fmt.Errorf("user syncer error: %w", userSyncer.Run(ctx))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue